CentOS 7 – issues while using certbot
On CentOS 7 you can face issues related to pyOpenSSL version while running certbot (https://certbot.eff.org/).
ImportError: ‘pyOpenSSL’ module missing required functionality. Try upgrading to v0.14 or newer.
If you can’t force CentOS 7 to use more recent version of this package, try this:
> cd ~ > curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" > python get-pip.py > pip install virtualenv > mkdir virtualenv > cd virtualenv > virtualenv --no-site-packages -p /usr/bin/python2.7 certbot > . ~/virtualenv/certbot/bin/activate > pip install certbot > pip install --upgrade setuptools > pip install --upgrade pyOpenSSL > pip install ipaddress > pip install enum34 > pip install cffi > certbot --version certbot 0.31.0
If you want to renew the cert, simply type
# if you want to renew certificate, you can run following command > certbot renew # in case you want to create new certificate, run it following way > certbot certonly --standalone --preferred-challenges http -d your.domain.name.goes.here