linda89757 发表于 2017-6-16 23:32:57

lnmp1.4 ssl出现错误!!!

Complete!
Creating virtual environment...
Installing Python packages...
Installation succeeded.
/root/.local/share/letsencrypt/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
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for rain.saisuo2006.com
Using the webroot path /home᮷wwroot/rainknowfirst for all unmatched domains.
Cleaning up challenges
Encountered exception during recovery
'ascii' codec can't decode byte 0xe3 in position 5: ordinal not in range(128)
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/lib/python2.6/site-packages/certbot/error_handler.py", line 99, in _call_registered
    self.funcs[-1]()
File "/root/.local/share/letsencrypt/lib/python2.6/site-packages/certbot/auth_handler.py", line 284, in _cleanup_challenges
    self.auth.cleanup(achalls)
File "/root/.local/share/letsencrypt/lib/python2.6/site-packages/certbot/plugins/webroot.py", line 220, in cleanup
    validation_path = self._get_validation_path(root_path, achall)
File "/root/.local/share/letsencrypt/lib/python2.6/site-packages/certbot/plugins/webroot.py", line 194, in _get_validation_path
    return os.path.join(root_path, achall.chall.encode("token"))
File "/root/.local/share/letsencrypt/lib64/python2.6/posixpath.py", line 70, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 5: ordinal not in range(128)
An unexpected error occurred:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 5: ordinal not in range(128)
Please see the logfiles in /var/log/letsencrypt for more details.

IMPORTANT NOTES:
- Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
Let's Encrypt SSL Certificate create failed!


执行 lnmp vhost add 添加 ssl 选 letsencrypt 时到最后出现错误了。好像是 编码问题,但不知道怎么处理?用 lnmp ssl add 重新安装了一遍,貌似成功了。但是证书和key 不知道在哪个目录?



[ 本帖最后由 linda89757 于 2017-6-17 00:02 编辑 ]

licess 发表于 2017-6-17 08:59:33

是编码问题
证书都在/etc/letsencrypt/live/域名/ 目录下
页: [1]
查看完整版本: lnmp1.4 ssl出现错误!!!