Can’t open config file: /usr/local/ssl/openssl.cnf on Windows [duplicate]

The solution is running this command:

set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg   


set OPENSSL_CONF=[path-to-OpenSSL-install-dir]\bin\openssl.cfg

in the command prompt before using openssl command.

Let openssl know for sure where to find its .cfg file.

Alternatively you could set the same variable OPENSSL_CONF in the Windows environment variables.

NOTE: This can happen when using the OpenSSL binary distribution from Shining Light Productions (a compiled + installer version of the official OpenSSL that is free to download & use). This distribution is “semi-officially” linked from OpenSSL’s site as a “service primarily for operating systems where there are no pre-compiled OpenSSL packages”.

Leave a Comment