Page 1 of 1

How to enable https on xampp for linux

PostPosted: 19. June 2015 11:36
by toreachdeepak
Hi,

Please help me in enabling the https on xampp for linux. I can see that port 443 is open using netstat -tuplen.

Regards

Deepak Bhatia

Re: How to enable https on xampp for linux

PostPosted: 19. June 2015 13:40
by Nobbie
Get you a valid certificate, put in a VirtualHost Definition, assign the SSL Configuration to your certificate and use https: as protocoll. There surely are plenty of tutorials in the WWW about that. From https://www.digicert.com/ssl-certificat ... apache.htm for example:


Configure the <VirtualHost> block for the SSL-enabled site.

Below is a very simple example of a virtual host configured for SSL. The parts listed in bold are the parts that must be added for SSL configuration:

<VirtualHost 192.168.0.1:443>
DocumentRoot /var/www/html2
ServerName http://www.yourdomain.com
SSLEngine on
SSLCertificateFile /path/to/your_domain_name.crt
SSLCertificateKeyFile /path/to/your_private.key
SSLCertificateChainFile /path/to/DigiCertCA.crt
</VirtualHost>
Adjust the file names to match your certificate files:

SSLCertificateFile should be your DigiCert certificate file (eg. your_domain_name.crt).
SSLCertificateKeyFile should be the key file generated when you created the CSR.
SSLCertificateChainFile should be the DigiCert intermediate certificate file (DigiCertCA.crt)
If the SSLCertificateChainFile directive does not work, try using the SSLCACertificateFile directive instead.


P.S.: You already asked the same stuff SIX YEARS AGO!?!? Why didnt you learn about that in that very very long period?