创建letsencrypt证书失败

时间:2018-02-19 01:11:10

标签: apache nginx lets-encrypt certbot

我在ubuntu 17.10上。看起来像已成功安装的certbot。 我跑的时候

sudo certbot --apache -d mywebsite.com -d www.mywebsite.com

我收到错误:

root@servername:~# sudo certbot --apache -d mywebsite.ca -d www.mywebsite.ca
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mywebsite.ca
http-01 challenge for www.mywebsite.ca
Enabled Apache rewrite module
Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

有什么想法吗? 显然apache没有运行,但没关系,我使用的是nginx,所以我不需要apache。还是我?

1 个答案:

答案 0 :(得分:2)

如果您正在运行nginx服务器,请使用nginx插件(不是apache):

sudo certbot --nginx -d mywebsite.com -d www.mywebsite.com