Can't install a Let's Encrypt certificate through Plesk after an update
When Plesk cannot reach Let's Encrypt after an update (cURL error 6, could not resolve host), restart its own services, then check DNS and the API host name.
A post about this problem was printed at this address on . The text below is new, written on 2026-11-25 from the official documentation linked in it.
On this page
The message that brought people to this address looked like this:
Could not obtain directory: cURL error 6: Could not resolve host: acme-v01.api.letsencrypt.org; Name or service not knownIt comes from the Plesk panel and not from your web server. Two things in it matter: the error number, and the host name at the end.
The quick fix: restart the panel's own services
Plesk runs its own engine and its own web server for the panel. After an update of system libraries those processes keep the old files open until they are restarted. The note that was printed here in 2018 named these two services, and they are still the first thing to try:
sudo systemctl restart sw-engine
sudo systemctl restart sw-cp-serverYou are logged out of the panel and the websites stay up. Plesk was not run for this page, so check the names on your server first with systemctl list-units 'sw-*'. Then order the certificate again in the panel.
cURL error 6 is about DNS
The list of libcurl errors calls number 6 CURLE_COULDNT_RESOLVE_HOST: the name could not be turned into an address. No certificate rule, rate limit or challenge is involved, because the server never got as far as a connection. Ask from a shell on the same machine:
getent hosts acme-v02.api.letsencrypt.org
curl -sI https://acme-v02.api.letsencrypt.org/directory | head -n 1
cat /etc/resolv.confIf getent prints nothing, name resolution is broken for the whole server. Look at the name servers in /etc/resolv.conf, and at a firewall that blocks outgoing port 53. If getent prints an address and the panel still fails, the panel's processes are the stale part and the restart above is the right repair.
If the first two commands work and the panel reports error 7 or 28 in place of 6, the name resolves and the connection is refused or times out, which points at a firewall for outgoing port 443.
The old host name is a second cause
The message names acme-v01. Let's Encrypt lists only acme-v02 and a staging host in its list of API endpoints, where it also asks administrators to keep their ACME clients up to date. The protocol behind v02 is RFC 8555.
So a panel that still asks for acme-v01 has an extension that is too old, and no restart will help it. Update the panel's extensions, SSL It! and Let's Encrypt, and then Plesk itself. The current way through the screens is in Plesk's administrator guide.
When the connection works and the order still fails
Then the message changes, and it's about your domain. Three cases cover most of it:
- The domain's A or AAAA record points to another server. An outdated AAAA record is easy to miss, because your own browser may be using IPv4.
- A redirect or an access rule stands in front of
/.well-known/acme-challenge/. The HTTP challenge fetches a file from there over port 80, so that path has to stay open even on a site that sends everything else to https. - The domain sits behind a proxy that answers the challenge itself.
You can look at the second case without Plesk. Put a small text file into the challenge folder and fetch it from outside:
curl -sI http://example.com/.well-known/acme-challenge/test.txtA 200 is what you want. Redirects to another host, a login page or a 403 are the reason for the failure. If the answer is a 502, the PHP side of nginx is down and the certificate is only the messenger.
Keep the old certificate in the meantime
Don't delete the existing certificate while you try. It stays valid until its own end date, and the sites keep working with it. Read that date from the command line:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -enddateRepeated attempts count against the issuer's rate limits, so fix the first cause before ordering again. More on the server side of certificates and redirects is under nginx and Apache.
Same subject
nginx 502 Bad Gateway with PHP-FPM: read the error log line first
A 502 means nginx got no usable answer from PHP-FPM. One line in the nginx error log says why: no socket, no permission, a dead worker or a big header.
Install phpMyAdmin on Ubuntu with nginx and PHP-FPM, the manual way
Download and verify the archive, unpack it outside the web root, write a server block with a PHP location, add config.inc.php and lock the address down.
Increase the maximum number of open files on Ubuntu (ulimit -n)
For a service such as nginx or PHP-FPM set LimitNOFILE in a systemd drop-in. The limits.conf file only changes login sessions, which is why edits seem ignored.
PHPSolvedThe fix first, then the reason