My domain is: www.elviservizi.it
I ran this command: nano 000-default-le-ssl.conf
It produced this output:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName www.elviservizi.it
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/elviservizi.it/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/elviservizi.it/privkey.pem
</VirtualHost>
</IfModule>
My web server is (include version): Server version: Apache/2.4.41 (Ubuntu); Server built: 2023-01-23T18:36:09
The operating system my web server runs on is (include version): Ubuntu 20.04 (LTS) x64
My hosting provider, if applicable, is: https://cloud.digitalocean.com/
I can login to a root shell on my machine: YES
I'm using a control panel to manage my site: NO, but i have access with FileZilla (don't think this info useful but if it helps it's here).
The version of my client is: certbot 2.4.0
So the certification never worked for me, i've tried multiple times starting a new droplet and re-uploading everything but with no results, I built this website, did the domain migration, set up digitalocean for a very small company here in Italy but can't seem to make SSL work.
I'm pretty sure I screwed something up while trying to install the certificate again (i was a bit tilted after 3 hours of searching for soluction and installed again without uninstalling first) but it didn't let me because of this red output when trying to sudo certbot certonly " Encountered error while loading certificate or csr: [('PEM routines', '', 'no start line')]
An unexpected error occurred:
OpenSSL.crypto.Error: [('PEM routines', '', 'no start line')] " ,
Now I have to say that I might have compromised the file called cert.pem as I tried putting another certificate inside (thinking this file wasn't even used because file 000-default-le-ssl.conf had no reference of this) and I was playing around with it, anyway I hoped I gaved a general view of the situation.
I can't seem to make anything work and tbh if I keep trying stuff I'm pretty sure I'm going to f something up. I'm very open to suggestions as this has a finish date time that i have to follow.
Thanks in advance, let me know if you need other informations lor better if you know any solution please.