Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save IsmailShurrab/09e8577feae44531e71d65e02d1c683c to your computer and use it in GitHub Desktop.
Save IsmailShurrab/09e8577feae44531e71d65e02d1c683c to your computer and use it in GitHub Desktop.
Installing an SSL Certificate under Apache (XAMPP)

Installing an SSL Certificate under Apache (XAMPP)

Requirements

  • XAMPP for Windows

Setup OpenSSL

Run this command:

set OPENSSL_CONF=c:\xampp\openssl\bin\openssl.cfg

Create a certificate

Run

openssl req -new -nodes -keyout www_example_com.key -out www_example_com.csr -newkey rsa:2048

Reade more: https://www.psw-group.de/support/?p=20/

e.g.

Country: UK
State: XX
Locality name (City): London
Organisation Name: Acme AG
Organisation Unit: HeadOffice
Common-Name: www.example.com
E-Mail: [email protected]
Password: secret123
Opional company name: keep empty, press enter
  • Order SSL cert at psw.net with file: www_example_com.csr
  • Download and extract the ZIP file from psw.net

Install the Apache SSL certificate

  • Open file with Notepad++: httpd-ssl.conf
  • Add the lines
SSLCertificateFile "conf/certs/2018/certificate/Sonstige (pem)/certificate.crt"
SSLCertificateKeyFile "conf/certs/2018/www_example_com.key"
SSLCertificateChainFile "conf/certs/2018/certificate/Sonstige (pem)/intermediate1.crt"
SSLCACertificateFile "conf/certs/2018/certificate/Sonstige (pem)/root.crt"
  • Restart apache

Test the SSL certificate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment