Problème avec Python pour génération des certificats SSL


#1

Bonjour, je souhaite générer un certificat SSL avec cette commande et j’obtiens une erreur que je n’obtenais pas avant. Possible de m’aider ? Voilà :

root@monvps:~/letsencrypt# ./letsencrypt-auto --server https://acme-v01.api.letsencrypt.org/directory certonly

Bootstrapping dependencies for Debian-based OSes… (you can skip this with --no-bootstrap)

Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]

Hit:2 http://nova.clouds.archive.ubuntu.com/ubuntu bionic InRelease

Hit:3 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease

Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]

Fetched 163 kB in 1s (224 kB/s)

Reading package lists… Done

Reading package lists… Done

Building dependency tree

Reading state information… Done

augeas-lenses is already the newest version (1.10.1-2).

ca-certificates is already the newest version (20180409).

libaugeas0 is already the newest version (1.10.1-2).

libffi-dev is already the newest version (3.2.1-8).

python is already the newest version (2.7.15~rc1-1).

python-dev is already the newest version (2.7.15~rc1-1).

python-virtualenv is already the newest version (15.1.0+ds-1.1).

virtualenv is already the newest version (15.1.0+ds-1.1).

gcc is already the newest version (4:7.3.0-3ubuntu2.1).

libssl-dev is already the newest version (1.1.0g-2ubuntu4.3).

openssl is already the newest version (1.1.0g-2ubuntu4.3).

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Creating virtual environment…

Installing Python packages…

Command “/opt/eff.org/certbot/venv/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-cBRGcn-build/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-_oZaDU-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.7/wheel” failed with error code 1 in /tmp/pip-cBRGcn-build/

Traceback (most recent call last):

File “/tmp/tmp.DRREEk5vx3/pipstrap.py”, line 177, in <module>

exit(main())

File “/tmp/tmp.DRREEk5vx3/pipstrap.py”, line 164, in main

shell=True)

File “/usr/lib/python2.7/subprocess.py”, line 223, in check_output

raise CalledProcessError(retcode, cmd, output=output)

subprocess.CalledProcessError: Command ‘pip install --no-index --no-deps -U --no-cache-dir /tmp/pipstrap-TbObV3/pip-9.0.1.tar.gz /tmp/pipstrap-TbObV3/setuptools-29.0.1.tar.gz /tmp/pipstrap-TbObV3/wheel-0.29.0.tar.gz’ returned non-zero exit status 1

Merci !


#2

Is there a reason you’re trying to use that particular command? I don’t know why it’s not working, but you might have better luck by following the instructions on https://certbot.eff.org/.

(traduction de Google)

Y a-t-il une raison pour laquelle vous essayez d’utiliser cette commande particulière? Je ne sais pas pourquoi cela ne fonctionne pas, mais vous pourriez avoir plus de chance en suivant les instructions sur https://certbot.eff.org/.


#3

This should be fixed in the next version of Certbot.


#4

Hello, thank you for answering me. I just reinstalled and I still have the same problem. So I have to wait for the new version? nothing to do to solve this problem? Thank you.


#5

Version 0.30.2 has now been released.