I have ssh to my site with https, yes
I used it because this was the only way I figured out how to get those files created. I was even a more newbie back then.
I have no idea what is the difference between the certificates that I see in hestiaCP with an expiration of May 1st and the pem files (certbot certificates) that shows expiration 6 days from now.
Oh, I have no idea, there's a redirection to https so even when I try http:// it automatically redirects to https:// I guess this is why I used dns challenge back then. For auto renewal I have to have access through http:80?
Can I create a new certificate now using a proper method so the renewal will work as expected? If so, how it should be done? You said that what I did previously was wrong so what is the correct one?
and btw I get certbot is already the newest version (1.12.0-2). when I run apt -y install certbot
I really don't have time for this.
Look for an HTTP vhost config / server block that covers the FQDN you need to secure.
Look within it for an exception for the challenge request.
If one doesn't exist then add it.
Also, take note of the root path used.
If one isn't used, then add one.
[be sure to use a secure/unique location - make one if needed]
From there, you can test [using --dry-run] using the --nginx plug-in [may require updating certbot - NO, that's NOT the lates version - just the latest APT version for that distro]
If that fails, you can try using certbot and --webroot
For details, search this site or read through the documentation OR ask questions and someone will answer soon enough.
I do have one question though, to whoever will see this
I now have 2 certificates, I was hoping it will override the old ones
Certificate Name: stockdiv.com-0001
Serial Number: 490dbe9bc2f1510a15f2dc10825de435e75
Key Type: RSA
Domains: stockdiv.com
Expiry Date: 2023-05-25 09:58:44+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/stockdiv.com-0001/fullchain.pem
Private Key Path: /etc/letsencrypt/live/stockdiv.com-0001/privkey.pem
Certificate Name: stockdiv.com
Serial Number: 3c645ac85dd15cfb06024618e99100b2c93
Key Type: RSA
Domains: stockdiv.comwww.stockdiv.com
Expiry Date: 2023-03-02 14:02:38+00:00 (VALID: 6 days)
Certificate Path: /etc/letsencrypt/live/stockdiv.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/stockdiv.com/privkey.pem