Letsencrypt был установлен, но не может создать сертификат - PullRequest
0 голосов
/ 01 февраля 2019

Пока я следую за этим (https://www.linode.com/docs/security/ssl/install-lets-encrypt-to-create-ssl-certificates/), на этапе создания сертификата с

sudo -H ./letsencrypt-auto certonly --standalone -d example.com -d www.example.com

, я получаю это сообщение:

[root@demo letsencrypt]# sudo -H ./letsencrypt-auto certonly
--standalone -d example.com -d www.example.com Bootstrapping dependencies for RedHat-based OSes... (you can skip this with
--no-bootstrap) yum is /bin/yum yum is hashed (/bin/yum) Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile  * epel: mirrors.sonic.net Package gcc-4.8.5-36.el7.x86_64 already installed and latest version Package augeas-libs-1.4.0-6.el7.x86_64 already installed and latest version Package 1:openssl-1.0.2k-16.el7.x86_64 already installed and latest version Package 1:openssl-devel-1.0.2k-16.el7.x86_64 already installed and latest version Package libffi-devel-3.0.13-18.el7.x86_64 already installed and latest version Package redhat-rpm-config-9.1.0-87.el7.centos.noarch already installed and latest version Package ca-certificates-2018.2.22-70.0.el7_5.noarch already installed and latest version Package python-devel-2.7.5-76.el7.x86_64 already installed and latest version Package python-virtualenv-15.1.0-2.el7.noarch already installed and latest version Package python-tools-2.7.5-76.el7.x86_64 already installed and latest version Package python2-pip-8.1.2-7.el7.noarch already installed and latest version Package 1:mod_ssl-2.4.6-88.el7.centos.x86_64 already installed and latest version Nothing to do Creating virtual environment... Installing Python packages... Had a problem while installing Python packages.

pip prints the following errors:
===================================================== Collecting argparse==1.4.0 (from -r /tmp/tmp.OCCtlbGSRd/letsencrypt-auto-requirements.txt (line 11))   Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/f2/94/3af39d34be01a24a6e65433d19e1070993742fd22a2f/argparse-1.4.0-py2.py3-none-any.whl Collecting pycparser==2.14 (from -r /tmp/tmp.OCCtlbGSRd/letsencrypt-auto-requirements.txt (line 17))

  Could not find a version that satisfies the requirement certbot==0.30.2 (from -r /tmp/tmp.OCCtlbGSRd/letsencrypt-auto-requirements.txt (line 209)) (from versions: 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2,
0.9.3, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.18.1, 0.18.2, 0.19.0, 0.20.0, 0.21.0, 0.21.1, 0.22.0, 0.22.1, 0.22.2, 0.23.0, 0.24.0, 0.25.0, 0.25.1, 0.26.0, 0.26.1, 0.27.0, 0.27.1, 0.28.0, 0.29.0, 0.29.1, 0.30.0, 0.30.1) No matching distribution found for certbot==0.30.2 (from -r /tmp/tmp.OCCtlbGSRd/letsencrypt-auto-requirements.txt (line 209))
=====================================================

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/ . `
...