Category Archives: SSL

CentOS 系统上,让Nginx 配置 Let’s Encrypt 的SSL证书

CentOS 系统上,让Nginx 配置 Let’s Encrypt 的SSL证书 snap 安装的是 certbot 2.11.0 1https://www.linode.com/docs/guides/enabling-https-using-certbot-with-nginx-on-centos-7/ 1-1. 安装 EPEL 12yum install -y epel-release yum upgrade -y 1-2. 安装 snapd 1yum install -y snapd 1-3. 开机自启动 snapd.socket 12systemctl enable –now snapd.socket systemctl start snapd.socket 1-4. 建立软链接 1ln -s /var/lib/snapd/snap /snap 2-1. 安装 Certbot 1snap install –classic certbot 会出现如下报错 1error: too early […]

NGINX 上的 SSL 证书无法加载 [lnmp vhost add 绑定域名后 Nginx 无法启动问题.]

NGINX 上的 SSL 证书无法加载 [lnmp vhost add 绑定域名后 Nginx 无法启动问题.] 原因: 是nginx无法找到ssl证书文件,因为证书文件的存放路径有问题 1systemctl restart nginx.service 1. 重启Nginx时报错如下: 12345678910111213Feb 09 10:39:22 iZj6c0q4b3lxkav5hc1s7aZ nginx[16189]: nginx: [emerg] cannot load certificate "/usr/local/nginx/conf/ssl/www.tokoler.com/fullchain.cer": BIO_new_file() failed (SS Feb 09 10:39:22 iZj6c0q4b3lxkav5hc1s7aZ systemd[1]: nginx.service: control process exited, code=exited status=1 Feb 09 10:39:22 iZj6c0q4b3lxkav5hc1s7aZ systemd[1]: Failed to start The NGINX HTTP and reverse […]

解决 ZeroSSL申请SSL证书经常遇到Timeout问题

解决 ZeroSSL申请SSL证书经常遇到Timeout问题 原因: 用ZeroSSL申请SSL证书经常遇到Timeout问题,申请不成功 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152[root@iZj6c03wjcflft0iuetdb9Z ~]# sudo screen -S lnmp [Tue Nov  1 15:12:30 CST 2022] checking [Tue Nov  1 15:12:30 CST 2022] url=’https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA’ [Tue Nov  1 15:12:30 CST 2022] payload [Tue Nov  1 15:12:30 CST 2022] Retrying post [Tue Nov  1 15:12:30 CST 2022] POST [Tue Nov  1 15:12:30 CST 2022] _post_url=’https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA’ [Tue Nov […]