回复 15# 的帖子
必须的,否则需要你自己去reload 军哥你好!我今天在另一台云主机上进行安装Let's Encrypt,环境是centos7,lnmp1.3,php7,操作步骤如下:
yum install epel-release
cd /root/
wget https://dl.eff.org/certbot-auto --no-check-certificate
chmod +x ./certbot-auto
./certbot-auto -n
显示complete,但是不知道是否成功安装依赖环境,然后
./certbot-auto certonly --email admin@vpser.net --agree-tos --webroot -w /home/wwwroot/www.vpser.net -d www.vpser.net -d bbs.vpser.net -w /home/wwwroot/lnmp.org -d www.lnmp.org -d lnmp.org
能显示图形界面,但是返回错误是无法连接各域名(主机)。
注:已经在每个虚机的配置文件中加入
location ~ /.well-known {
allow all;
}
并且已经
lnmp restart
乃至
reboot
错误结果依旧。
PS:前一个云主机一直显示错误,昨晚凌晨一点,依照你的教程更改pip源:
mkdir ~/.pip
cat > ~/.pip/pip.conf <<EOF
index-url = https://pypi.doubanio.com/simple/
trusted-host=pypi.doubanio.com
EOF
然后我vi ~/.pip/pip.conf,发现已经储存成功信息:
index-url = https://pypi.doubanio.com/simple/
trusted-host=pypi.doubanio.com
之後再次:
./certbot-auto certonly --email admin@vpser.net --agree-tos --webroot -w /home/wwwroot/www.vpser.net -d www.vpser.net -d bbs.vpser.net -w /home/wwwroot/lnmp.org -d www.lnmp.org -d lnmp.org
发现成功了。
今天也依葫芦画瓢,更改pip源,并再次:
yum install epel-release
yum repolist
./certbot-auto -n
最后显示complete,于是:
./certbot-auto certonly --email admin@vpser.net --agree-tos --webroot -w /home/wwwroot/www.vpser.net -d www.vpser.net -d bbs.vpser.net -w /home/wwwroot/lnmp.org -d www.lnmp.org -d lnmp.org
结果错误依旧
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: AAAAAAAAAAAAAA.com
Type: unauthorized
Detail: Invalid response from
http://AAAAAAAAAAAAAA.com/.well-known/acme-challenge/taUOwA5Hlp8Jbfj1l7ob9w8aSZYPLdV8IUgI4BNFkpY:
"<!DOCTYPE html>
<html lang="zh" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8"/>
<title>****"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
发现.well-known是存在的,但是acme-challenge并不存在。形同上本帖主楼主机安装时的错误。
回复 17# 的帖子
不存在你自己创建上/.well-known/acme-challenge/的目录再试试看请求到的内容不是认证文件 新服务器上多次
./certbot-auto -n
一直显示错误:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Missing command line flags. For non-interactive execution, you will need to specify a plugin on the command line.Run with '--help plugins' to see a list of options, and see https://eff.org/letsencrypt-plugins for more detail on what the plugins do and how to use them.
vi /var/log/letsencrypt/letsencrypt.log
显示:
2016-11-18 00:25:04,381:DEBUG:certbot.main:Root logging level set at 20
2016-11-18 00:25:04,381:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-11-18 00:25:04,381:DEBUG:certbot.main:certbot version: 0.9.3
2016-11-18 00:25:04,382:DEBUG:certbot.main:Arguments: ['-n']
2016-11-18 00:25:04,382:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#standalone,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#webroot,PluginEntryPoint#apache,PluginEntryPoint#null)
2016-11-18 00:25:04,382:DEBUG:certbot.plugins.selection:Requested authenticator None and installer None
2016-11-18 00:25:04,383:DEBUG:certbot.main:Exiting abnormally:
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
sys.exit(main())
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/main.py", line 776, in main
return config.func(config, plugins)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/main.py", line 502, in run
installer, authenticator = plug_sel.choose_configurator_plugins(config, plugins, "run")
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/plugins/selection.py", line 185, in choose_configurator_plugins authenticator = installer = pick_configurator(config, req_inst, plugins)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/plugins/selection.py", line 25, in pick_configurator
(interfaces.IAuthenticator, interfaces.IInstaller))
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/plugins/selection.py", line 67, in pick_plugin
"Missing command line flags. For non-interactive execution, "
MissingCommandlineFlag: Missing command line flags. For non-interactive execution, you will need to specify a plugin on the command line.Run with '--help plugins' to see a list of options, and see https://eff.org/letsencrypt-plugins for more detail on what the plugins do and how to use them.
昨晚升级python到3.4.3,发现./certbot-auto -n後仍然提示以上错误
回复 19# 的帖子
上面没错误,你问了这么次letsencrypt的问题算是没记住,自己翻看我给你回复后面参数说明的帖子吧回复 20# 的帖子
翻了一天翻不到你说的那个后面参数的回复:Q ,劳烦军哥指教多一次,不好意思吖:lol回复 21# 的帖子
大体意思就是 ./certbot-auto -n只是用来安装依赖包的,报错就报错不用管,也可以不执行 ./certbot-auto -n
页:
1
[2]