Search code examples
wampserver

Wampserver: WARNING: can't open config file: ...openssl.cnf


I'm following the tutorial here to set up HTTPS on Wampserver.

My wamp is @ d:\wamp

Everything has worked up until Step B, which says:

Type the command:

openssl req -new -key server.key -out server.csr

That command produces the error:

WARNING: can't open config file: c:\vc11_deps\repo\winlibs_openssl/install_x86/openssl.cnf

Unable to load config file info from: C:\vc11_deps\repo\winlibs_openssl/install_x86/openssl.cnf

I'm assuming I need to gain a copy of C:\vc11_deps\repo\winlibs_openssl but I find no trace of this on Google, and do not know what it is.

Do you know where I can gain a copy of C:\vc11_deps\repo\winlibs_openssl or winlibs_openssl?

Edit: I found https://github.com/winlibs/openssl

Edit2: I ran the following command in an elevated CMD prompt:

set OPENSSL_CONF=d:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf

and then ran

openssl req -new -key server.key -out server.csr

again, and received the same error:

WARNING: can't open config file: c:\vc11_deps\repo\winlibs_openssl/install_x86/openssl.cnf

Unable to load config file info from: C:\vc11_deps\repo\winlibs_openssl/install_x86/openssl.cnf

PHP error log shows:

[14-Apr-2016 09:38:52 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'd:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

[14-Apr-2016 09:38:52 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'd:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.


Solution

  • Not sure if this Q & A is worthwhile, but:

    I copied D:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf to a newly created C:\vc11_deps\repo\winlibs_openssl\install_x86 folder, and the error disappeared.