There are several ways:
If the cert is being served to the Internet, then there are many ways to show the expiration date.
If the cert is not being served to the Internet, then you can use OpenSSL: openssl x509 -enddate -noout -in cert.pem
certbot renew
If you are going to continue using HTTP-01 authentication, you will need to use port 80.
yes, that's my web server at port 80 on a MacMini with OSX. For now, I have changed the port to 80 for the Icecast servers running Ubuntu on another MacMini so I can renew your certificate.
By using > instead of >>, you've deleted the original contents of the renewal configuration file, effectively destroying all the required information for Certbot to even recognise the cert.
> truncates the original, >> appends to the original. You want to use >> and not >. Not that it matters now, as the original is gone.
You probably want to delete the current certificate and generate a new one. When doing so, please use the --deploy-hook option instead of manually messing with the renewal configuration file.
Something like: certbot --cert-name IceCast -d kpurrr.com -d www.kpurrr.com
[along with any other "words" previous used: "--standalone" or "--webroot" etc. ]
Have you tried manually "fixing" that entry in the file /etc/letsencrypt/renewal/kpurrr.com.conf ?
Maybe that is all you really need to do to get this working again.
Simulating renewal of an existing certificate for kpurrr.com
Failed to renew certificate kpurrr.com with error: Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/kpurrr.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
root@louie:~#
Since I will use this port 8000 and 8443 for this Icecast2 server and my webserver is port 80 and port 443.
thanks
Thanks guys I have only one question how to do you manual renew and how to get the expiration date??? If I don't have port 80 open at the time of renewal??? What will happen also?
peace
good job