Let's Encrypt SSL certificate installation failed: SSLError: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Created:

2016-11-16 12:54:45 UTC

Modified:

2017-05-19 10:18:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Let's Encrypt SSL certificate installation failed: SSLError: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

  • Installation of Let's Encrypt SSL certificate for a domain fails with one of the following errors in web interface:

    Error: Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution: An unexpected error occurred:
    SSLError: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
    Please see the logfiles in C:\\Program Files (x86)\\Parallels\\Plesk\\var\\modules\\letsencrypt\\logs for more details.

    or

    Error: Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution: An unexpected error occurred:
    ExpatError: not well-formed (invalid token): line 1, column 49
    Please see the logfiles in C:\\Program Files (x86)\\Parallels\\Plesk\\var\\modules\\letsencrypt\\logs for more details.
  • The following error massage can be found in %plesk_dir%\\var\\modules\\letsencrypt\\logs\\letsencrypt :

    <BODY><h2>Bad Request - Invalid Hostname</h2>

    <hr><p>HTTP Error 400. The request hostname is invalid.</p>

    </BODY></HTML>

Cause

Plesk is inaccessible on port 8443.

Resolution

Important: Plesk must be accessible on default ports.

Add the following record into IIS > Sites > pleskcontrolpanel > Bindings :

  • Type: https
  • Port: 8443
  • SSL certificate: Parallels Panel

If it is needed to make Plesk accessible on a custom port, please give this article a referral.

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