有没有一种方法可以使openssl跳过提示,例如
Country Name (2 letter code) [US]:
Organization Name (eg, company) [My Company Name LTD.]:
Common Name (eg, YOUR name) [something]:
在创建证书时
openssl req -config openssl.cnf -new -x509 ...
考虑到这些参数在openssl.cnf
文件中提供的事实
例如
countryName = Country Name (2 letter code)
countryName_default = US
countryName_min = 2
countryName_max = 2
0.organizationName = Organization Name (eg, company)
0.organizationName_default = My Company Name LTD.
commonName = Common Name (eg, YOUR name)
commonName_max = 64
commonName_default = ${ENV::CN}