Unable to install Let's Encrypt certificate: KeyError: 'site'

Created:

2016-12-12 03:45:24 UTC

Modified:

2017-08-08 13:43:45 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Unable to install Let's Encrypt certificate: KeyError: 'site'

Applicable to:

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

Symptoms

Not possible to install a new certificate using Let's Encrypt:

Error from UI:

KeyError: 'site'

The full error is:

Error: Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution: Saving debug log to /usr/local/psa/var/modules/letsencrypt/logs/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for example.com
http-01 challenge for example.com
Cleaning up challenges
An unexpected error occurred:
KeyError: 'site'
Please see the logfiles in /usr/local/psa/var/modules/letsencrypt/logs for more details

Error from /usr/local/psa/var/modules/letsencrypt/logs/letsencrypt.log file:

DEBUG:letsencrypt_plesk.api_client:Plesk API-RPC response: <?xml version="1.0"?>
<errtext>Access to API is disabled for 127.0.0.1</errtext>

Cause

Administrative Access is restricted for the localhost in Tools & Settings > Restrict Administrative Access

Resolution

Add 127.0.0.1 to the list of exclusions.

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