How to get SSL certificates and Enabled HTTPS for any domain and websites in Apache?

Posted by

Step 1: Stop Apache for this command

sudo /opt/lampp/lampp stop

Step 2: Generate PRIVATE KEY. usually, we do use an open SSL tool

Generate PRIVATE KEY. usually, we use the Open SSL tool

Output – .key file

Step 3:  Generate a CSR file using the same key. usually, we do use an open SSL tool

Output – .csr file

Step 4: Send a .csr file to CA for the approved certificate file

CA, There are many CAs in the world liek GodADDY, aws, aZURE, gOOGLE cLOUD, VERIZON etc. You can also become CA but its a costly affairs

Output – .cert file

Step 5: Enable SSL in Apache configuration

Go to this path /opt/lampp/etc# cd extra httpd-ssl.conf

Step 6 : Set SSL cert in httpd-ssl.conf

SSLEngine on
SSLCertificateFile "/opt/lampp/etc/certs/domain.crt"
SSLCertificateKeyFile "/opt/lampp/etc/certs/domain.key"
SSLCACertificateFile "/opt/lampp/etc/certs/mygd_bundle-g2-g1.crt"

Step 7 – Restart Apache.

sudo /opt/lampp/lampp start
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x