I am running up to date Ubuntu 20.04.1 LTS and Apache2.
Certbot was installed using Snap, which is the latest version.
I installed cerbot a couple of months back and it worked flawlessly for the domain name we had then. Since then we have changed our domain name to a differemt domain name.
I have clearly made a mess of installing the new certbot certs as they don't work.
I thought all I was going to have to do was follow these instructions
which I did but that did not give me the padlock for the new domain, in fact I've been going in circles for 20 mins now.
Does someone have commands to completley remove all of certbot so I can start again.
I'm pretty sure removing everything and start over isn't necessary. We probably can help you further without doing that. But we need more information to work with to do that.
Apache is no longer displaying the web page.
In the browser I get
"This site can’t provide a secure connection floheating.co.uk sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated) (Enter 'c' to cancel): floheating.co.ukwww.floheating.co.uk
Requesting a certificate for floheating.co.uk and www.floheating.co.uk
IMPORTANT NOTES:
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/floheating.co.uk/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/floheating.co.uk/privkey.pem
Your certificate will expire on 2021-04-11. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again. To non-interactively renew all of your
certificates, run "certbot renew"
If you like Certbot, please consider supporting our work by:
It seems your Apache doesn't have a virtualhost configured. That's not a major issue if you just have one site. However, the apache module of certbot cannot install or authenticate your hostnamethe certificate like that. But you can use the webroot plugin as authenticator and manually install the certificate.
Currently in browser floheating.co.uk produces this page error
"This site can’t provide a secure connection www.floheating.co.uk sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"
How do I use "webroot" plugin?
That's not necessary. I thought you couldn't get a certificate with the apache plugin without a virtualhost, but it seems that was wrong. As you actually did get a certificate just now, right?
In any case:
I'm getting the following error from CURL:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
It seems your Apache is using HTTP on port 443. Apache should "speak" HTTPS, not HTTP. Your Apache is very misconfigured.
You should slow down and try to better understand how to configure an Apache server and admin a server. You've already deleted whatever configuration and certs were there.