I have SNAP version of certbot installed with auto renew on ubuntu 22.04 LTS. Due to some issues with systemd / init, i'm running nginx as process, due to this "snap application certbot.renew" have crashed/failed to renew certificates automatically.
When running "certbot certonly --force-renew" it is asking "Are you trying to change the key type of the certificate named <<removed-domain>>-0001 from ECDSA to RSA? Please provide both --cert-name and --key-type on the command line to confirm the change you are trying to make."
Question.
1, Is there anyway to re-enable auto-renew for expired certs ?.
2, If only manual renewal is possible, what additional commands i need to pass for successful renewal.
Sure, but not sure what problem you had originally. First, does the snap version of Certbot work? Why do you also have the apt version? Anyway, what does this show:
Based on the above it looks like you removed the snap version (5.5). Or, do you mean you now also removed v1.21 ? In the end you should be using only the snap version.
As for what to do ... the error message saying "timeout" is pretty clear that Let's Encrypt's servers cannot reach your server.
You will need to find out why those HTTP requests from LE to you are timing out. Two tools we commonly use for testing connections are https://letsdebug.net and the HTTP test at Check website performance and response : Check host - online website monitoring (not its ping and not udp, the http test). Both of those sites should show successful connections if your locals comms and server are setup right. Right now both of those probably fail just like Let's Encrypt.
The most common reason is that a firewall is blocking connections. But, many other things can cause that. Without your actual domain name or more details of your setup there isn't much more specific that we can say. Keep using those testing tools until you get successful connections and retry the cert --dry-run. If that works then try getting a fresh production cert.
Can you even reach your domain from outside your local network? Like a mobile phone with wifi disabled?