is it possible making openssl skipping the country/common name prompts?

后端 未结 5 1765
长情又很酷
长情又很酷 2021-01-31 13:05

Is there a way to make openssl skiping the prompts such as

Country Name (2 letter code) [US]:
Organization Name (eg, company) [My Company Name LTD.]:
Common Nam         


        
5条回答
  •  独厮守ぢ
    2021-01-31 13:34

    The -batch optional parameter causes the openssl req command to not prompt for any of the information fields. I use it this way without a config file for automation of self-signed certs.

    It is listed in the help:

    openssl help req
    ...
    ...
    -batch              Do not ask anything during request generation
    

提交回复
热议问题