让我们加密证书不适用于ubuntu上的Nginx

时间:2020-01-19 23:13:26

标签: nginx lets-encrypt

运行sudo certbot-auto --nginx时出现以下错误。我使用nginx和Ubuntu 14遵循了该网站https://certbot.eff.org/lets-encrypt/ubuntuother-nginx中的说明

python --version
Python 3.6.3

从那以后我也不理解python警告

sudo /usr/local/bin/certbot-auto --nginx
/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a release (2.7.7+) that supports hmac.compare_digest as soon as possible.
utils.PersistentlyDeprecated2018,
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /etc/nginx/nginx.conf -t.

nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(\'/etc/letsencrypt/live/www.benty-fields.com/fullchain.pem\',\'r\') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n',)

但是由于任何原因它使用python 2

另外,知道现在没有可用的证书可能会有帮助

pip install --upgrade --no-deps statsmodels

1 个答案:

答案 0 :(得分:0)

我修复了...

必须删除一些可以找到的certbot链接

grep -R /etc/letsencrypt/live/example.com/fullchain.pem /etc/nginx/