【问题标题】:How to install let's encrypt ssl in Goautodial 4 CentOS 7?如何在 Goautodial 4 CentOS 7 中安装 let's encrypt ssl?
【发布时间】:2020-09-18 03:45:34
【问题描述】:

我最近安装的 Goautodial 4 服务器出现问题。 Bcz index.php 页面显示 ssl 证书正常并已安装,但是当我以用户身份登录时,agent.php 页面不安全。如何管理所有页面都使用 https 显示? 我真的很感激一些帮助。 谢谢

【问题讨论】:

    标签: server ssl-certificate centos7 lets-encrypt certbot


    【解决方案1】:

    到目前为止,这就是我安装 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 &gt;&gt; /var/log/sslrenew.log

    就是这样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-13
      • 2023-03-11
      • 2017-06-28
      • 2018-11-30
      • 1970-01-01
      • 1970-01-01
      • 2016-09-06
      相关资源
      最近更新 更多