Unable to load config info from /usr/local/ssl/openssl.cnf
Attempting to generate a Certificate Signing Request (CSR) using Apache and OpenSSL on Windows Server 2003 I received the following error message:
"Unable to load config info from /usr/local/ssl/openssl.cnf"
Immediately it is obvious that the path specified is a *nix path, not a Windows path. Apparently (link) there is no standard place for the config file in Windows, automatically resulting in this error.
To remedy, add the following line to the openssl
-config "C:\Program Files\Apache Software Foundation\Apache2.2\conf\openssl.cnf"
For example,
openssl req -new -key my.key -config "C:\Program Files\Apache Software Foundation\Apache2.2\conf\openssl.cnf" -out my.csr
Comments
Thanks for posting this tip. I appreciate it! I was trying to run openssl on Windows too to generate an SSL CSR file.
Pawel
However, if you run this from a standard OpenSSL for Windows installation, you may get away with this shortened parameter value if run from the OpenSSL prompt:
-config ../share/openssl.cnf
If run from the command line, it should read:
-config ..\share\openssl.cnf
/gustav
btw: Does anybody know if Windows setup ever been properly QA Dept. Tested?
Nice blogg!
It was so useful.
:)
-config "C:\Program Files\GnuWin32\share\openssl.cnf"
It work for me in configuring apache in xampp.
Thanks a lot.
David Saliba's tip was the "magic" key ...