VPS侦探论坛

 找回密码
 注册
查看: 3578|回复: 5

LNMP1.4 SSL装不上,请问怎么操作?

[复制链接]
发表于 2018-1-4 15:35:20 | 显示全部楼层 |阅读模式

2: Use Let's Encrypt to create SSL Certificate and Key
Enter 1 or 2: 2
Please enter your email address:
It will be processed automatically.
/bin/certbot [found]
index-url = https://mirrors.aliyun.com/pypi/simple/
pip.conf exist.
Starting create SSL Certificate use Let's Encrypt...
/opt/eff.org/certbot/venv/lib/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
  DeprecationWarning
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
/opt/eff.org/certbot/venv/lib/python2.6/site-packages/acme/jose/jwa.py:110: DeprecationWarning: signer and verifier have been deprecated. Please use sign and verify instead.
  signer = key.signer(self.padding, self.hash)
An unexpected error occurred:
The request message was malformed :: Error creating new authz :: DNS name does not have enough labels
Please see the logfiles in /var/log/letsencrypt for more details.
Let's Encrypt SSL Certificate create failed!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-1-4 18:09:19 | 显示全部楼层


估计可能是填写的域名有问题,是非域名。建议发 /var/log/letsencrypt/letsencrypt.log 完整日志看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-1-14 09:22:40 | 显示全部楼层

管理员,你好。这个问题已经知道是什么情况引起来的。在lnmp vhost add 的时候,为了建立/home/wwwroot/baidu的文件目录,站点域名设置成baidu这种不带后缀的;lnmp vhost add 命令同时开启ssl时,ssl是不认baidu这样的没解析域名,所以才不能成功创建证书。建议:在lnmp vhost add 命令同时开启ssl时,过滤掉baidu这种不带后缀的域名。
希望你们的LNMP越来越好用,谢谢。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-1-14 14:47:43 | 显示全部楼层

回复 3# 的帖子




不是正常的域名就没法生成ssl,你先lnmp vhost add 添加非正常域名后再单独 lnmp ssl add 为正常的域名添加ssl开启https就行了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-1-19 10:26:47 | 显示全部楼层

Certbot has problem setting up the virtual environment.

We were not be able to guess the right solution from your pip
output.

Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .
Let's Encrypt SSL Certificate create failed!

这是按你说的的那个步骤操作的,建站点时也没有用不带后缀的域名。看了一下var/log/下没有所说的letsencrypt目录。

系统为centos 6.5 阿里云   服务器初始化安装
一次一步到位的安装都没有。郁闷。
再次初始化,wget不到lnmp1.4.tar.gz,但在本地可以下载到。

[ 本帖最后由 charwavid 于 2018-1-19 11:05 编辑 ]

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

发表于 2018-1-19 16:15:31 | 显示全部楼层

回复 5# 的帖子


没有lesencrypt的目录说明没安装成功

可以尝试升级到1.5 https://lnmp.org/notice/lnmp-v1-5-beta.html

wget不到没错误信息没法说
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-18 20:48 , Processed in 0.027252 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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