Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution

Created:

2017-02-27 20:19:53 UTC

Modified:

2017-08-08 13:43:45 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  • Plesk shows the following error when trying to install a Let's Encrypt certificate for a website:

    Error: Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution: Saving debug log to /usr/local/psa/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
    http-01 challenge for www.example.com
    Starting new HTTPS connection (1): 127.0.0.1
    Cleaning up challenges
    An unexpected error occurred:
    KeyError: 'site'
    Please see the logfiles in /usr/local/psa/var/modules/letsencrypt/logs for more details.
  • The following error can be found in /var/log/plesk/panel.log :

    ERR [1] PleskPermissionDeniedException: Access to API is disabled.
    

Cause

API is disabled in /usr/local/psa/admin/conf/panel.ini :

[api]
enabled = off

Resolution

Enable API in /usr/local/psa/admin/conf/panel.ini :

[api]
enabled = on
Have more questions? Submit a request
Please sign in to leave a comment.