问题描述
我已经下载XAMPP的Mac,安装了它,买了SSL证书时,,但我有难
I have downloaded xampp for mac, installed it and bought ssl certificat, but i'm having hard
次安装SSL ...
times to install the ssl...
- 有人能计算机聪明给我解释一步一步,轻松如何设置?请我有
搜索谷歌,但不明白他们,请把你的时间
searched google, but could not understand the way they did, please take your time to
解释...
推荐答案
您需要编辑启用SSL是文件的httpd-ssl.conf中
中找到的conf /额外
目录。
The file you need to edit to enable SSL is httpd-ssl.conf
found in the conf/extra
directory.
更改以下指令:
-
了SSLCertificateFile
到domain_com.crt
-
SSLCACertificateFile
到PositiveSSLCA2.crt
-
了SSLCertificateKeyFile
来在创建CSR您收到的私钥文件
SSLCertificateFile
todomain_com.crt
SSLCACertificateFile
toPositiveSSLCA2.crt
SSLCertificateKeyFile
to the private key file you received when you created the CSR
- 开启终端,然后键入:
sudo的纳米/私营/ etc / hosts中
然后添加127.0.0.1您的网域.COM
和127.0.0.1 www.your_domain.com
,完成后编辑hosts文件,preSS 控制-O 以保存文件。
- 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.
然后调用须藤/应用/ XAMPP / xamppfiles / XAMPP enablessl
启用在httpd.conf SSL和重新启动Apache。现在尝试访问 https://开头本地主机
Then call sudo /Applications/XAMPP/xamppfiles/xampp enablessl
to enable SSL in httpd.conf and restart Apache. Now try accessing https://localhost
这篇关于设置在XAMPP MAC SSL证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!