SSL/Certbot/Python issue

When i add site (subdomain) i mark the SSL options but after the website is created the SSL is Self. From the CyberCP Main log i see:

 File "/usr/bin/certbot", line 9, in <module>
    load_entry_point('certbot==0.18.1', 'console_scripts', 'certbot')()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/certbot/main.py", line 17, in <module>
    from certbot import client
  File "/usr/lib/python2.7/site-packages/certbot/client.py", line 11, in <module>
    from acme import client as acme_client
  File "/usr/lib/python2.7/site-packages/acme/client.py", line 34, in <module>
    urllib3.contrib.pyopenssl.inject_into_urllib3()
  File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 112, in inject_into_urllib3
    _validate_dependencies_met()
  File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 147, in _validate_dependencies_met
    raise ImportError("'pyOpenSSL' module missing required functionality. "
ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer.

#######################################
<class 'pexpect.exceptions.EOF'>
#######################################

After that i test from the SSL menu but i got the same error in the log file + the line that the SSL vconf is exists.

Latest build/release, Centos 7.4, python 2.7.5

There is an issue with come CentOS images.

They have an old version of pyOpenSSL. You can upgrade pyOpenSSL using:

yum remove pyOpenSSL -y
rpm -ivh ftp://195.220.108.108/linux/fedora-secondary/updates/25/ppc64/p/pyOpenSSL-16.2.0-2.fc25.noarch.rpm
yum install certbot

This should fix it.

Still the same

Different pyOpenSSL

https://www.rpmfind.net/linux/rpm2html/search.php?query=pyOpenSSL&submit=Search+...&system=&arch=

Okay, here is how i resolve the issue:

pip install pyOpenSSL==16.2.0

but in some cases this may not work and if is that way use the options that @usmannasir give.