Attempting to renew cert produced an unexpected error: Failed authorization procedure

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:nidc.co.tz

I ran this command: certbot renew

It produced this output:

Processing /etc/letsencrypt/renewal/mail.nidc.co.tz.conf

Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for mail.nidc.co.tz
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (mail.nidc.co.tz) from /etc/letsencrypt/renewal/mail.nidc.co.tz.conf produced an unexpected error: Failed authorization procedure. mail.nidc.co.tz (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https://mail.nidc.co.tz/.well-known/acme-challenge/It5n--JTG-h2PKwZ8TLamLvHYoKMhSs67ogDsr6Duys: Connection refused. Skipping.


Processing /etc/letsencrypt/renewal/nidc.co.tz.conf

Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for nidc.co.tz
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (nidc.co.tz) from /etc/letsencrypt/renewal/nidc.co.tz.conf produced an unexpected error: Failed authorization procedure. nidc.co.tz (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://nidc.co.tz/.well-known/acme-challenge/eKRfdjHof0KFC9XgqV0eK8E0EGd7asuLT_mfSoL0noE: “\n\n404 Not Found\n\n

Not Found

\n<p”. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/mail.nidc.co.tz/fullchain.pem (failure)
/etc/letsencrypt/live/nidc.co.tz/fullchain.pem (failure)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/mail.nidc.co.tz/fullchain.pem (failure)
/etc/letsencrypt/live/nidc.co.tz/fullchain.pem (failure)

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

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: mail.nidc.co.tz
    Type: connection
    Detail: Fetching
    https://mail.nidc.co.tz/.well-known/acme-challenge/It5n--JTG-h2PKwZ8TLamLvHYoKMhSs67ogDsr6Duys:
    Connection refused

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you’re using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

  • The following errors were reported by the server:

    Domain: nidc.co.tz
    Type: unauthorized
    Detail: Invalid response from
    http://nidc.co.tz/.well-known/acme-challenge/eKRfdjHof0KFC9XgqV0eK8E0EGd7asuLT_mfSoL0noE:
    “\n\n404 Not
    Found\n\n

    Not Found

    \n<p”

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address.

My web server is (include version):

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

My hosting provider, if applicable, is:

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

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

Hi,

Could you please check if your web server’s port 443 is opened?

Thank you

Hi Stevenzhu,

443 port is not opened, should I go open it ??

Yes. Please do so.
(Since your website is redirecting automatically from http to https)

Thank you

sorry Stevenzhu,
what is the command to open that port in CentOS 7, please

Hi @Seky

you have a mail-subdomain, you want to use http-01 - validation. But there is no webserver running mail.nidc.co.tz, port 80. Your error says, there was a redirect to https, but that means, that you had an open port 80 and a running webserver, which is now closed / removed.

Checking the domains:

https://transparencyreport.google.com/https/certificates?cert_search_auth=&cert_search_cert=&cert_search=include_expired:false;include_subdomains:false;domain:mail.nidc.co.tz&lu=cert_search

There is a cPanel-certificate with 7 names:

nidc.co.tz
cpanel.nidc.co.tz
mail.nidc.co.tz
webdisk.nidc.co.tz
webmail.nidc.co.tz
whm.nidc.co.tz
www.nidc.co.tz

So please use your cPanel, not another own client.

Hi JuergenAuer,

Thanks a lot for your support, how can I go about it using my own cpanel and not another own client.

Please help

How did you create all these certificates? Do it again.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.