If you are using Plesk, you might encounter this error during installation of Let’s Encrypt SSL Certificate.
Error: Could not issue a Let's Encrypt SSL/TLS certificate for xyz.com.
Could not obtain directory: cURL error 6: Could not resolve host: acme-v01.api.letsencrypt.org; Name or service not known (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
This horrible looking error, is quite easy to fix. According to Plesk Knowledgebase, this error occurs because “Shared libraries used by the service were updated e.g. OpenSSL, glibc”.
To fix this error, you just need to restart the Server.
- Login to Plesk
- Navigate to Tools & Settings > Server Management and click on “Restart Server”
After Server is rebooted, try to install Let’s Encrypt certificate and hopefully this time, it will install without any error.