Setup an SSL certificate on xampp mac

爱⌒轻易说出口 提交于 2019-12-09 07:13:27

问题


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 to domain_com.crt
  • SSLCACertificateFile to PositiveSSLCA2.crt
  • SSLCertificateKeyFile to the private key file you received when you created the CSR

    • Open " Terminal " and type: 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



来源:https://stackoverflow.com/questions/11377651/setup-an-ssl-certificate-on-xampp-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!