VPS侦探论坛

 找回密码
 注册
12
返回列表 发新帖
楼主: yanqzh

Let's Encrypt用certbot-auto安装依赖包时出错

[复制链接]
发表于 2016-11-15 10:37:35 | 显示全部楼层

回复 15# 的帖子


必须的,否则需要你自己去reload
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-11-16 19:12:47 | 显示全部楼层


军哥你好!

我今天在另一台云主机上进行安装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
[global]
index-url = https://pypi.doubanio.com/simple/
[install]
trusted-host=pypi.doubanio.com
EOF
然后我vi ~/.pip/pip.conf,发现已经储存成功信息:
[global]
index-url = https://pypi.doubanio.com/simple/
[install]
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并不存在。形同上本帖主楼主机安装时的错误。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-11-17 10:25:29 | 显示全部楼层

回复 17# 的帖子


不存在你自己创建上/.well-known/acme-challenge/的目录再试试

看请求到的内容不是认证文件
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-11-18 08:30:37 | 显示全部楼层



新服务器上多次
./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,381EBUG: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,381EBUG:certbot.main:certbot version: 0.9.3
2016-11-18 00:25:04,382EBUG:certbot.main:Arguments: ['-n']
2016-11-18 00:25:04,382EBUG:certbot.mainiscovered plugins: PluginsRegistry(PluginEntryPoint#standalone,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#webroot,PluginEntryPoint#apache,PluginEntryPoint#null)
2016-11-18 00:25:04,382EBUG:certbot.plugins.selection:Requested authenticator None and installer None
2016-11-18 00:25:04,383EBUG: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後仍然提示以上错误
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-11-18 09:10:51 | 显示全部楼层

回复 19# 的帖子


上面没错误,你问了这么次letsencrypt的问题算是没记住,自己翻看我给你回复后面参数说明的帖子吧

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2016-11-18 19:17:29 | 显示全部楼层

回复 20# 的帖子


翻了一天翻不到你说的那个后面参数的回复 ,劳烦军哥指教多一次,不好意思吖
发表于 2016-11-18 20:24:05 | 显示全部楼层

回复 21# 的帖子


大体意思就是 ./certbot-auto -n只是用来安装依赖包的,报错就报错不用管,也可以不执行 ./certbot-auto -n
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-16 15:26 , Processed in 0.026744 second(s), 13 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表