LetsEncrypt SSL certificate installation failed: 'ascii' codec can't encode characters

Created:

2017-02-08 09:44:18 UTC

Modified:

2017-08-08 13:43:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

LetsEncrypt SSL certificate installation failed: 'ascii' codec can't encode characters

Applicable to:

  • Plesk Onyx for Windows

Symptoms

LetsEncrypt SSL certificate installation failed with the following error:

Failed letsencrypt execution: Saving debug log to C:\Program Files (x86)\Parallels\Plesk\var\modules\letsencrypt\logs\letsencrypt.log
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for example.com
Starting new HTTPS connection (1): 127.0.0.1
Waiting for verification...
Cleaning up challenges
An unexpected error occurred:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 277-281: ordinal not in range(128)
Please see the logfiles in C:\Program Files (x86)\Parallels\Plesk\var\modules\letsencrypt\logs for more details.

LetsEncrypt log file contains the following string:

Invalid response from http://example.com/.well-known/acme-challenge/C_4vziENw5Bsf93hUvgUlyzx85FuHQt_4ePAXf0thjo

Cause

Site code redirects requests from LetsEncrypt to a custom page.

Resolution

Make sure that there is no rewrite rule in web.config.

Try to rename domain's index page and receive a certificate.

If the issue persists, please contact website developer in order to allow access to LetsEncrypt temporary files stored in .well-known directory.

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