我正在尝试使用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>
答案 0 :(得分:0)
我必须打开尚未打开的端口443。
同时执行./letsencrypt-auto重置我的ssl证书,我的域名被识别。