Unable to install Let's Encrypt certificate: AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Created:

2017-03-14 07:37:18 UTC

Modified:

2017-08-08 13:12:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to install Let's Encrypt certificate: AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Applicable to:

  • Plesk for Windows

Symptoms

Unable to install Let's Encrypt certificate using an extension. The following error message appears:

Error: Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution: Traceback (most recent call last):
File "C:\Program Files (x86)\Plesk\python\Lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Program Files (x86)\Plesk\python\Lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Program Files (x86)\Plesk\var\modules\letsencrypt\venv\Scripts\certbot.exe\__main__.py", line 5, in <module>
File "c:\program files (x86)\plesk\var\modules\letsencrypt\ven4426.tmp\lib\site-packages\certbot\main.py", line 13, in <module>
from acme import jose
File "c:\program files (x86)\plesk\var\modules\letsencrypt\ven4426.tmp\lib\site-packages\acme\jose\__init__.py", line 37, in <module>
from acme.jose.interfaces import JSONDeSerializable
File "c:\program files (x86)\plesk\var\modules\letsencrypt\ven4426.tmp\lib\site-packages\acme\jose\interfaces.py", line 9, in <module>
from acme.jose import util
File "c:\program files (x86)\plesk\var\modules\letsencrypt\ven4426.tmp\lib\site-packages\acme\jose\util.py", line 5, in <module>
import OpenSSL
File "c:\program files (x86)\plesk\var\modules\letsencrypt\ven4426.tmp\lib\site-packages\OpenSSL\__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "c:\program files (x86)\plesk\var\modules\letsencrypt\ven4426.tmp\lib\site-packages\OpenSSL\SSL.py", line 124, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Cause

An old version of PyOpenSSL library is being used by the extension.

Resolution

Reinstall Let's Encrypt extension from extensions catalog. An appropriate version of PyOpenSSL will be installed accordingly.

Have more questions? Submit a request
Please sign in to leave a comment.