Installing an SSL Certificate under Apache (XAMPP)

29 Oct 2017



Download and install the 32-Bit version of OpenSSL


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

Create a certificate request file


cd C:\OpenSSL-Win32\bin
openssl req -new -nodes -keyout www_example_com.key -out www_example_com.csr -newkey rsa:2048

To create a self-signed certificate with OpenSSL run:

openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -nodes

Enter the certificate request data:

Country: UK
State: XX
Locality name (City): London
Organisation Name: Acme AG
Organisation Unit: HeadOffice
Password: secret123
Optional company name: keep empty, press enter

Installing the SSL Certificate

SSLCertificateFile "conf/ssl.crt/certificate.crt"
SSLCertificateKeyFile "conf/ssl.key/www_example_com.key"
SSLCertificateChainFile "conf/ssl.crt/intermediate1.crt"
SSLCACertificateFile "conf/ssl.crt/root.crt"

Testing the SSL certificate

This SSL Checker will help you diagnose problems with your SSL certificate installation. You can verify the SSL certificate on your web server to make sure it is correctly installed, valid, trusted and doesn’t give any errors to any of your users. To use the SSL Checker, simply enter your server’s hostname (must be public) in the box below and click the Check SSL button.