所以这是我的情况: 环境:AWS / EC2 / Ubuntu
我在我的子域上安装了一个应用程序。创建它时,我安装了 LetsEncrypt 证书并且它可以工作(mautic.promptmakr.com)
现在我也想使用根域,我也想保护它,但目前它显示它不安全(https://promptmakr.com)
我想知道在子域的证书已存在的情况下,我可以选择哪些选项来保护根域?我以前没有做过这件事,所以对此有点新鲜。
其他详细信息:
当我运行这个时:
sudo certbot --apache -d promptmakr.com
我明白了
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the certificate (may be subject to CA rate limits)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
谢谢。
您可以使用以下命令为 example.com 及其子域创建多个 SSL 证书
sudo certbot --apache -d example.com -d subdomain.example.com
您还可以尝试使用通配符证书。有关它们的详细信息可以在这里找到:certbot-wildcard。