问题
I have downloaded xampp for mac, installed it and bought ssl certificat, but i'm having hard
times to install the ssl...
- Can someone computer wise explain to me step by step, easy how to set it up? please i have
searched google, but could not understand the way they did, please take your time to
explain...
回答1:
The file you need to edit to enable SSL is httpd-ssl.conf
found in the conf/extra
directory.
Change the following directives:
SSLCertificateFile
todomain_com.crt
SSLCACertificateFile
toPositiveSSLCA2.crt
SSLCertificateKeyFile
to the private key file you received when you created the CSR- Open " Terminal " and type:
sudo nano /private/etc/hosts
then add127.0.0.1 your_domain.com
and127.0.0.1 www.your_domain.com
, when done editing the hosts file, press control-o to save the file.
- Open " Terminal " and type:
Then call sudo /Applications/XAMPP/xamppfiles/xampp enablessl
to enable SSL in httpd.conf and restart Apache. Now try accessing https://localhost
来源:https://stackoverflow.com/questions/11377651/setup-an-ssl-certificate-on-xampp-mac