This error occurs mainly on windows when you are using openssl package,
The reason is that openssl failed to locate the openssl.cnf file
I will recommend that you do the following (one windows only)
- Open your command prompt as Administrator (few openssl commands opens in random state), thus when openssl tries to write stuff on your disk it fails. There could be another workaround but i am not aware of that.
- Now before you run any openssl command type the following.
set OPENSSL_CONF=c:\[PATH TO YOUR OPENSSL DIRECTORY]\bin\openssl.cfg
after you did the above now you are good to go with your openssl stuff.
Remember that everytime you open a command prompt you have to run the above command unless you set this as your environment variable.
I hope this helps. If it does then don’t forget to leave your comments below.
Cheers.
.
Link to this article is below
Search Terms:
- warning: can\t open config file: /usr/local/ssl/openssl cnf
- warning: cant open config file: /usr/local/ssl/openssl cnf
- can\t open config file: /usr/local/ssl/openssl cnf
- openssl cant open config file
- cant open config file: /usr/local/ssl/openssl cnf
- openssl can\t open config file
- can\t open config file /usr/local/ssl/openssl cnf








thanks a lot,
it worked for me…..
Great tip!
Worked for me with Win32OpenSSL_Light-1_0_0e.exe on Win2K3.
–
mkb
Thank you very much for the solution!
This package didn’t contain a openssl.cnf file. I also ran the set statement but still get the same error.
Get the Installer from here http://www.slproweb.com/products/Win32OpenSSL.html try the Lite version. You will find the openssl.cfg in bin folder of your default Installed path.
Thanks, Jaspreet. It worked for me.
Thanks. That info isn’t on documentation… neither the variable name.
Worked great. Thanks!
Gracias
Well done. Good tip!
The default install of the win32 version of OpenSSL was c:\OpenSSL-Win32.
Thus, I needed to use the command: set OPENSSL_CONF=c:\openssl-win32\bin\openssl.cfg to get this to work
Worked like a charm. Thank you.
It worked for me, thank you very much !!
Thanks for this, worked for me!
What worked for me was creating a permanent Windows environment variable called OPENSSL_CONF and giving it the value C:OpenSSL-Win32binopenssl.cfg
Thanks pointing me in the right direction,
Andy
Thanks a lot, this saved me some time today. SSL can be so frustrating!
Installed the lite package… Error: ‘set’ is an invalid command
Lol. What on earth.
…make way for the n00b – I see what I did wrong!
Thank you a lot.
It worked for me too. Thank you.
Worked great. Thanks a lot