Unable to generate SSL certificate through XAMPP

2019-07-04 12:18发布

问题:

I have been trying to generate a SSL certificate for local testing. When I cd into /xampp/apache/ and run makecert I get the following error:

WARNING: Can't open config file: ./bin/openssl.cnf
...
Error opening Private Key privkey.pem

How can that be fixed?

回答1:

There is a wrong path to the openssl.cnf in the makecert.bat.

Just edit makecert.bat to fix the path:

set OPENSSL_CONF=./conf/openssl.cnf