【问题标题】:Setup SSL with Lets Encrypt on RHEL在 RHEL 上使用 Lets Encrypt 设置 SSL
【发布时间】:2017-07-16 17:58:46
【问题描述】:

我正在尝试使用 Letsencrypt 设置 ssl 证书,但是当我运行时:

./letsencrypt-auto --apache -d industriemedia.tv

好像找不到我的域名:

[root@ip-172-31-21-7 letsencrypt]# ./letsencrypt-auto --apache -d industriemedia.tv
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for industriemedia.tv

We were unable to find a vhost with a ServerName or Address of industriemedia.tv.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
-------------------------------------------------------------------------------
1: ssl.conf                       |                       | HTTPS | Enabled
-------------------------------------------------------------------------------

但我在 /etc/httpd/conf/httpd.conf 中添加了一个虚拟主机

<VirtualHost *:80>
  ServerName www.industriemedia.tv
  ServerAlias industriemedia.tv *.industriemedia.tv
  DocumentRoot /var/www/html/
</VirtualHost>

【问题讨论】:

  • 你试过./letsencrypt-auto --apache -d www.industriemedia.tv吗?

标签: ssl amazon-ec2 redhat lets-encrypt


【解决方案1】:

我不得不打开尚未打开的443端口。

还执行 ./letsencrypt-auto 重置我的 ssl 证书,并且我的域被识别。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-04-28
    • 2017-05-16
    • 1970-01-01
    • 2017-08-18
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    相关资源
    最近更新 更多