关于亚马逊网络服务:如何在 aws elastic beanstalk 上为非 www 和 www 域配置 letencrypt ssl?

How config letsencrypt ssl for non-www and www domain on the aws elastic beanstalk?

我使用 https://github.com/tomyates/letsencrypt-install-elasticbeanstalk-single-instance/ 为 aws elastic beanstalk 配置letsencrypt SSL。

我的问题:https://github.com/tomyates/letsencrypt-install-elasticbeanstalk-single-instance/issues/2

我为 domain.com 配置了 SSL,没问题。 (LE_SSL_DOMAIN = domain.com)
但是当我运行 www.domain.com 时,浏览器错误:
"您的连接不是私人的"。

那么,如何同时为 domain.com 和 www.domain.com 配置 SSL?
我试过了:

1
-d"$LE_SSL_DOMAIN" -d"www.$LE_SSL_DOMAIN"

但它不起作用!

帮帮我。谢谢大家!


我的解决方案:

1
 sudo ./certbot-auto certonly -d"$LE_SSL_DOMAIN" --agree-tos --email"$LE_EMAIL" --webroot --webroot-path /var/app/current"$DOCUMENT_ROOT" --debug --non-interactive --renew-by-default

=> 更新:

1
 sudo ./certbot-auto certonly --apache -d"$LE_SSL_DOMAIN" -d"www.$LE_SSL_DOMAIN" --agree-tos --email"$LE_EMAIL" --debug --non-interactive --renew-by-default