How to renew certificate after ip of my server was changed

Recently my internet provider was change my fixed public ip, they told me that was a fail in his systems…

Now i cannot renew my certificate because as i can see in https://check-your-website.server-daten.de/?q=galoserver.org seems that the certificates have my old ip, and the let’s encrypt server try to call my domain using the old ip.

How can i solve this behaviour and update the old ip with the new one, and renew my certificate?

Many thanks,
Abraham.

My domain is:


I ran this command:
certbot renew
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/galoserver.org.conf


Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for www.galoserver.org
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (galoserver.org) from /etc/letsencrypt/renewal/galoserver.org.conf produced an unexpected error: Failed authorization procedure. www.galoserver.org (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://www.galoserver.org/.well-known/acme-challenge/CAhKPeU9ti9QhPJN71Byl12HngPL2bSvadvl0qI-LB0: Timeout during connect (likely firewall problem). Skipping.


Processing /etc/letsencrypt/renewal/webmin.galoserver.org.conf


Cert not yet due for renewal
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/galoserver.org/fullchain.pem (failure)


The following certs are not due for renewal yet:
/etc/letsencrypt/live/webmin.galoserver.org/fullchain.pem expires on 2020-01-29 (skipped)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/galoserver.org/fullchain.pem (failure)


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

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: www.galoserver.org
    Type: connection
    Detail: Fetching
    http://www.galoserver.org/.well-known/acme-challenge/CAhKPeU9ti9QhPJN71Byl12HngPL2bSvadvl0qI-LB0:
    Timeout during connect (likely firewall problem)

    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
    My web server is (include version):
    Apache 2.4
    The operating system my web server runs on is (include version):
    Ubuntu 18.04 LTS
    My hosting provider, if applicable, is:
    Myself
    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): 0.31.0

1 Like

Hi @galopete

there are two different ip addresses:

Host T IP-Address is auth. ∑ Queries ∑ Timeout
galoserver.org A 85.50.123.130 Crevillent/Valencia/Spain (ES) - Uni2 1 Hostname: 130.pool85-50-123.dynamic.orange.es yes 1 0
AAAA yes
www.galoserver.org A 85.50.143.97 Javea/Valencia/Spain (ES) - Uni2 1 Hostname: 97.pool85-50-143.dynamic.orange.es yes 1 0
AAAA yes

May be one is old, one is new. Or both are old.

Change all old, so only the new ip address is used.

ns2.dondominio.com is your name server, perhaps you should have a menu to change your A entries.

2 Likes

Many thanks, Juergen!.

Finally i was found the way to change the old ip in my domain name server panel.

Now my cert is renewed.

Have a nice day!.
Abraham

2 Likes

Yep, that's required if your ISP changes the ip. Happy to read you have found a solution :+1:

1 Like

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