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

Anonymous said…
Hey Man,
Thanks for posting this tip. I appreciate it! I was trying to run openssl on Windows too to generate an SSL CSR file.
Marcin said…
Thanks! :-)
Anonymous said…
Works perfectly, big thanks! :)

Pawel
Anonymous said…
Thanks!
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
yc said…
thanks alot for info. It worked great
Anonymous said…
That was the Perfect remedy!!
Anonymous said…
Would be great if the openssl windows install setup program could do the -config ..\share\openssl.cnf .
btw: Does anybody know if Windows setup ever been properly QA Dept. Tested?
Nice blogg!
Anonymous said…
Thank you so much.
It was so useful.
:)
davidsaliba said…
Obvious but just in case, with openssl (non apache setup) the command to add would be :

-config "C:\Program Files\GnuWin32\share\openssl.cnf"
Anonymous said…
In XAMPP, teh openssl conf file is in /xampp/php/extras/openssl/
Shirsendu Pal said…
Good work dude.
It work for me in configuring apache in xampp.
Thanks a lot.
Anonymous said…
Perfect! Thanks so much for posting this!
Raminder said…
great. saved my day.
GM said…
Saved my day. Thanks for posting.
Anonymous said…
Thanks a bunch!
David Saliba's tip was the "magic" key ...
Anonymous said…
Tank you very much!!!
Anonymous said…
thanks
Anonymous said…
Perfect - thank you!
Anonymous said…
Thanks for posting this! Worked perfectly!
Anonymous said…
You saved my day!! Cheers!!

Popular posts from this blog

Excel - Adding an existing Pivot table to the data model

Mirth

Getting Started with Mirth (Part 1)