Failed to renew cert

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:portal.ieol.com.my

I ran this command: ./letsencrypt-auto renew

It produced this output:
WARNING: unable to check for updates.
/opt/eff.org/certbot/venv/lib/python2.7/site-packages/cryptography/hazmat/primit ives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Pytho n version is deprecated. The next version of cryptography will remove support. P lease upgrade to a release (2.7.7+) that supports hmac.compare_digest as soon as possible.
utils.PersistentlyDeprecated2018,
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/portal.ieol.com.my.conf


Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator apache, Installer apache
Attempting to renew cert (portal.ieol.com.my) from /etc/letsencrypt/renewal/port al.ieol.com.my.conf produced an unexpected error: HTTPSConnectionPool(host=‘acme -v02.api.letsencrypt.org’, port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection objec t at 0x40ff510>: Failed to establish a new connection: [Errno -2] Name or servic e not known’,)). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/portal.ieol.com.my/fullchain.pem (failure)


All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/portal.ieol.com.my/fullchain.pem (failure)


1 renew failure(s), 0 parse failure(s)

My web server is (include version): Apache

The operating system my web server runs on is (include version):Centos06

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):

Is your server’s DNS resolution working?

What do these show:

host acme-v02.api.letsencrypt.org
host google.com

[root@centos61 letsencrypt]# host google.com
;; connection timed out; no servers could be reached
[root@centos61 letsencrypt]# host acme-v02.api.letsencrypt.org
;; connection timed out; no servers could be reached

Well, there you go.

Have a look at what /etc/resolv.conf reports as your current resolvers. Whatever is there is currently offline or not working.

You could try 1.1.1.1 and 8.8.8.8 as alternatives.

Thanks it works after changed the DNS