Unable to generate SSL certificate through XAMPP

2019-07-04 12:15发布

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条回答
ゆ 、 Hurt°
2楼-- · 2019-07-04 12:34

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
查看更多
登录 后发表回答