【发布时间】:2020-09-18 03:45:34
【问题描述】:
我最近安装的 Goautodial 4 服务器出现问题。 Bcz index.php 页面显示 ssl 证书正常并已安装,但是当我以用户身份登录时,agent.php 页面不安全。如何管理所有页面都使用 https 显示? 我真的很感激一些帮助。 谢谢
【问题讨论】:
标签: server ssl-certificate centos7 lets-encrypt certbot
我最近安装的 Goautodial 4 服务器出现问题。 Bcz index.php 页面显示 ssl 证书正常并已安装,但是当我以用户身份登录时,agent.php 页面不安全。如何管理所有页面都使用 https 显示? 我真的很感激一些帮助。 谢谢
【问题讨论】:
标签: server ssl-certificate centos7 lets-encrypt certbot
到目前为止,这就是我安装 let's encrypt ssl 所做的工作。
1- 我已经安装了 EPEL 存储库,因为它默认不可用:
sudo yum install -y epel-release mod_ssl
2- 比我为端口 80 创建虚拟主机
使用 server.domain.com.conf 创建了一个文件:
nano /etc/httpd/conf.d/server.domain.com.conf
并插入到这段代码中:
<VirtualHost *:80>
ServerName www.server.domain.com
ServerAlias server.domain.com
DocumentRoot /var/www/html/
</VirtualHost>
systemctl restart httpd
3- 从 EPEL 存储库安装 certbot 客户端:
sudo yum install python-certbot-apache
4- 为 server.domain.com 生成证书:
sudo certbot --apache -d server.domain.com
5- 在安装过程中对所有问题输入“是”并将所有问题重定向到 https。
6- 我为续订过程设置了一个 crontab:
sudo crontab -e
0 0 * * 1 / usr / bin / certbot renew >> /var/log/sslrenew.log
就是这样。
【讨论】: