How to apply new certificates to xampp server?

Step 1 – Create a Private key from the hosting server

$ openssl genrsa -out yourdomain.key 2048

Step 2 – Create a CSR file

$ openssl req -new -key yourdomain.key -out yourdomain.csr

Step 3 – Upload your CSR file to Godaddy or your cerfificate CA company.

Step 4 – Download your certificates as per your server type and upload to the server

Step 5 – Upload a file with .crt extension to you server into /opt/lampp/etc/certs/

eg. 52ac1e2638301e93.crt and gd_bundle-g2-g1.crt

Step 6 – Make sure you have following file /opt/lampp/etc/certs/

  • 52ac1e2638301e93.crt – Download from Godaddy or CA site
  • gd_bundle-g2-g1.crt – Download from Godaddy or CA site
  • privatekey.key – Generated from Step#1

Step 7 – Now time to change /opt/lampp/etc/extra/httpd-ssl.conf & modify following entry

  • SSLCertificateFile “/opt/lampp/etc/certs/52ac1e2638301e93.crt”
  • SSLCertificateKeyFile “/opt/lampp/etc/certs/DOMAIN.key”
  • SSLCACertificateFile “/opt/lampp/etc/certs/gd_bundle-g2-g1.crt”

Step 8 – Restart XAMPP

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x