Ssl www和非www域的Letsencrypt证书

Ssl www和非www域的Letsencrypt证书,ssl,https,lets-encrypt,Ssl,Https,Lets Encrypt,我已生成SSL证书,如下所示: sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt ./letsencrypt-auto certonly --standalone 然后我被要求发送电子邮件。。。和一个域名。我输入了“mydomain.com” 我发现我可以使用不同的方法输入多个域以包含在一个证书中。例如: sudo -H ./letsencrypt-auto certonly --standal

我已生成SSL证书,如下所示:

sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
./letsencrypt-auto certonly --standalone
然后我被要求发送电子邮件。。。和一个域名。我输入了“mydomain.com”

我发现我可以使用不同的方法输入多个域以包含在一个证书中。例如:

sudo -H ./letsencrypt-auto certonly --standalone -d example.com -d www.example.com
我想知道,当我在对话框中被提升为多个域时,我是否可以输入多个域,或者现在我需要使用不同的方法重新生成

在采用新方法之前,是否需要删除以前的letsencrypt安装

更新->已解决

sudo ./certbot-auto certonly --standalone -d mydomain.com -d www.mydomain.com

您不需要删除已安装的证书

如果使用相同的域,则可以将其扩展到子域。请执行以下操作:

sudo certbot certonly --standalone -d domain.com -d www.domain.com
当提示您展开或取消时,请用E键回复,然后按键盘上的Enter键

证书应成功安装

如果遇到以下错误:绑定到端口80的问题:无法绑定到IPv4或IPv6,通过运行
systemctl stop apache2
停止apache,然后再次运行上述certbot命令


成功设置ssl证书后,运行
systemctl restart apache2
使apache重新启动并运行。

您可以向现有证书添加主机名并续订签名。看看这里:我已经将cronjob设置为自动续订-自动续订会同时续订它们吗?(以及所有其他证书?)是的,它将更新这两个证书@razI Get
失败的授权过程
用于www,
DNS问题:NXDOMAIN正在查找www.
@JosephK。确保DNS配置中的A记录正确无误。