Could not issue a Let's Encrypt SSL/TLS certificate via Plesk
I'm unable to get an SSL certificate via Plesk with the following error:
Could not issue an SSL/TLS certificate for example.net
Could not issue a Let's Encrypt SSL/TLS certificate for example.net. Authorization for the domain failed.
Invalid response from https://acme-v02.api.letsencrypt.org/acme/authz-v3/#######.
Detail: Fetching https://example.net/.well-known/acme-challenge/: Connection refused
It appears that some other Plesk users have run into similar problems installing SSL certificates. It looks like this user was able to bypass the error by removing a JSON file in their
/usr/local/psa/var/modules/letsencrypt/orders directory that contained a ‘pending’ status. Based on this thread, it also appears that this could be a potential bug in Plesk:
Could not issue a Let’s Encrypt SSL/TLS certificate
And this user was able to solve the problem by adding an alias to the nginx directives of their domain:
[Resolved] Could not issue a Let's Encrypt SSL/TLS certificate
This user was running into issues caused by a firewall blocking connections during the SSL request:
Unable to issue Let's Encrypt certificate in Plesk: "Timeout during connect (likely firewall problem)" OR "Error getting validation data"
It also looks like Plesk has a troubleshooting guide for SSL certificates that may be of some help:
Troubleshooting failed Let's Encrypt certificate installations for a domain in Plesk
And in case you haven't seen it yet, we have an Nginx guide that discusses how to configure SSL certificates with Nginx:
Getting Started with NGINX - Part 3: Enable TLS for HTTPS Connections
If you fix the issue, please reply here with the steps taken so that anyone else running into similar problems can try out your solution!