Windows 服务器+Laragon+免费SSL设定教学
如何在Wndows 的 Laragon 设定免费的SSL.
步骤: 1
下载: dl.eff.org/certbot-beta-installer-...
安装后,点击这里文件: C:\Program Files (x86)\Certbot\bin\certbot.exe
然后命令:cmd (command prompt):
步骤 2:
在Command Prompt 里,输入指令行并确认Certbot 是否可以执行:certbot --help
步骤 3:
输入指令行:certbot certonly --standalone --register-unsafely-without-email
(记得关上Laragon 服务器,避免端口 Port:80 相撞)
步骤 4:
在 C:/CertBot/live - 复制 2 文件 - cert.pem 与 privkey.pem 到 C:\laragon\etc\ssl
然后分别改名为 (域名容易管理):domain.com.cert 与 domain.com.key
步骤 5:
启动 SSL: Laragon > 工具图标 (右上角) > 目录 “Services & Ports” > SSL > Enabled > 之后重启 Laragon
步骤 6:
去到文件: Laragon > Apache > Sites-enabled > 00-default.conf
修改以下:
SSLCertificateFile C:/laragon/etc/ssl/domain.com.crt
SSLCertificateKeyFile C:/laragon/etc/ssl/domain.com.key
步骤 7:
点击域名 domain.com [如果没改变请耐心等等,或用手机访问,有可能是缓存原因]
(如果SSL协议已过期,重复这些步骤就可以更新了)
参考 Youtube 视频:www.youtube.com/watch?v=XA5Hn9Ifnd...
本作品采用《CC 协议》,转载必须注明作者和本文链接