Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to generate SSL certificate through XAMPP

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?

like image 909
Severin Avatar asked Nov 23 '25 10:11

Severin


1 Answers

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
like image 186
DronNick Avatar answered Nov 25 '25 09:11

DronNick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!