Reputation: 109
I have downloaded xampp for mac, installed it and bought ssl certificat, but i'm having hard
times to install the ssl...
searched google, but could not understand the way they did, please take your time to
explain...
Upvotes: 2
Views: 17664
Reputation: 69927
The file you need to edit to enable SSL is httpd-ssl.conf
found in the conf/extra
directory.
Change the following directives:
SSLCertificateFile
to domain_com.crt
SSLCACertificateFile
to PositiveSSLCA2.crt
SSLCertificateKeyFile
to the private key file you received when you created the CSR
sudo nano /private/etc/hosts
then add 127.0.0.1 your_domain.com
and 127.0.0.1 www.your_domain.com
, when done editing the hosts file, press control-o to save the file.Then call sudo /Applications/XAMPP/xamppfiles/xampp enablessl
to enable SSL in httpd.conf and restart Apache. Now try accessing https://localhost
Upvotes: 5