我正在尝试用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
<VirtualHost *:80>
ServerName www.industriemedia.tv
ServerAlias industriemedia.tv *.industriemedia.tv
DocumentRoot /var/www/html/
</VirtualHost>
最佳答案
我必须打开尚未打开的端口443。
还执行./letsencrypt-auto重设我的ssl证书,并且我的域被识别。
关于ssl - 在RHEL上使用Lets Encrypt设置SSL,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/42463435/