【问题标题】:How config letsencrypt ssl for non-www and www domain on the aws elastic beanstalk?如何在aws elastic beanstalk上为非www和www域配置letencrypt ssl?
【发布时间】:2019-04-23 13:15:18
【问题描述】:

我使用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? 我试过了:

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

但它不起作用!

帮帮我。谢谢大家!

【问题讨论】:

    标签: amazon-web-services ssl lets-encrypt amazon-elastic-beanstalk


    【解决方案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
    

    => 更新:

     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
    

    【讨论】:

      猜你喜欢
      • 2018-01-07
      • 2017-05-30
      • 1970-01-01
      • 2013-03-28
      • 2014-06-18
      • 2019-01-28
      • 2017-05-21
      • 2019-10-25
      • 1970-01-01
      相关资源
      最近更新 更多