Certbotauto SSL Certificate non-www domain and www domain

1
./certbot-auto certonly --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns  -d example.com -d www.example.com

./certbot-auto renew 更新证书时,出现类似

1
2
3
4
5
6
7
8
9
10
Cert is due for renewal, auto-renewing...
Could not choose appropriate plugin: The requested pache plugin does not appear to be installed
Attempting to renew cert ([FQDN]) from /etc/letsencrypt/renewal/[FQDN].conf produced an unexpected error: The requested pache plugin does not appear to be installed. Skipping.

...

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/[FQDN]/fullchain.pem (failure)

可以尝试这个命令

1
./certbot-auto certonly

最后修改web服务器中的域名ssl的配置文件,更新ssl正式的路径。然后重启 web服务器。

如:我是使用 Centos 6 + Apache

编辑 apache vhost 配置文件,里面更新 ssl 正式路径即可

1
sudo vim /etc/httpd/conf.d/www.example.com-ssl.conf
Reference
  1. SSL Certificate not working for non-www domain
  2. Ubuntu 使用 Certbot 自動更新 Let’s Encrypt 憑證