设置在XAMPP MAC SSL证书(Setup an SSL certificate on xam

2019-07-30 07:06发布

我已经下载XAMPP的Mac,安装了它,买了SSL certificat,但我有难

次安装SSL ...

  • 可有人计算机聪明给我解释一步一步,易于如何设置? 请我有

谷歌搜索,但不明白他们,请把你的时间的方式

说明...

Answer 1:

你需要编辑启用SSL该文件httpd-ssl.conf的发现conf/extra目录。

更改以下指令:

  • SSLCertificateFiledomain_com.crt
  • SSLCACertificateFilePositiveSSLCA2.crt
  • SSLCertificateKeyFile私钥文件收到在创建CSR

    • 打开“ 终端 ”并键入: sudo nano /private/etc/hosts再加入127.0.0.1 your_domain.com127.0.0.1 www.your_domain.com ,完成编辑hosts文件时,按Control-O来保存文件。

然后调用sudo /Applications/XAMPP/xamppfiles/xampp enablessl启用在httpd.conf SSL和重新启动Apache。 现在尝试访问https://localhost



文章来源: Setup an SSL certificate on xampp mac
标签: apache ssl xampp