I am using the following command to create a certificate request:
openssl req -config openssl.cnf -new -out [filename].csr -passout pass:[password] The openssl.cnf file is in the directory that I run the command from.
The problem is that I am still prompted to submit the values for country, state, locality, etc.
I want to do this programmatically, without someone having to step in and type these values. Shouldn't openssl.cnf provide the default values to be used? Am I missing an argument or something?
openssl version -a | grep OPENSSLDIRto see which configuration file OpenSSL is using. More correclty, its usingopenssl.cnf, but the question is where its coming from. In all setup's I am aware, OpenSSL apps never looks inPWD. You have to setPWDin an environmental variableOPENSSL_CONF, or you have to providePWDas a-configoption.