Before running the --dry-run test againâŚ
We need to first ensure we know which certs are actually being used.
Please show: grep -Eri 'ssl_cert|server_name' /etc/nginx
I thought I had.... and it wasn't empty - it had the cert that expired which triggered this emergency. It seems to have got recreated and empty. I wonder why and if that has something to do with failed renewals....
The output of this is very convoluted - it goes through sites-available and lists out non-existent certificates from obsolete configs also.
All the servers are currently using /etc/letsencrypt/live/vidyut.info-0001/fullchain.pem; (and privkey).
The india/map is a test site thing. Not really using it for anything much so far. Ignore the difference.
One thing worth investigating may be that certbot certonly --dry-run failed, but certbot certonly worked.
Certbot renew is obviously not working right now with new cert, but if it is issued using webroot, maybe certbot renew will work when cert is due for renewal, but fails for certbot renew --dry-run similar to certonly?
Something different about how --dry-run handles authentication?
If so, short of waiting for certs to be due to expire, is there any other way I can make sure that it will work?
[the â4â is the real count of all items in that folder - some arenât normally shown (like ones that start with a dot) - Just as an FYI, to see more try: ls -la /etc/letsencrypt/renewal/]
I have to go out of town on urgent work tomorrow and replies may be erratic - network issues + super hectic schedule. Though I still will be checking - this is important. I will be back on 24th after which replies will be prompt again.
The letsencrypt log is over 8MB!!!? Any way to weed out the info you need from it?
CertStorageError: expected /etc/letsencrypt/live/aamjanata.com/cert.pem to be a symlink
CertStorageError: expected /etc/letsencrypt/live/wide-aware.com/cert.pem to be a symlink
CertStorageError: expected /etc/letsencrypt/live/india.aamjanata.com/cert.pem to be a symlink
CertStorageError: expected /etc/letsencrypt/live/aamjanata.in/cert.pem to be a symlink
CertStorageError: expected /etc/letsencrypt/live/aadhaar.fail/cert.pem to be a symlink
CertStorageError: expected /etc/letsencrypt/live/fekle.in/cert.pem to be a symlink
CertStorageError: expected /etc/letsencrypt/live/nisarga.info/cert.pem to be a symlink
CertStorageError: expected /etc/letsencrypt/live/vidyut.net/cert.pem to be a symlink
CertStorageError: expected /etc/letsencrypt/live/homeschoolingindia.in/cert.pem to be a symlink
Error: 0 renew failure(s), 9 parse failure(s)
Please show: ls -lR /etc/letsencrypt/live/ ls -lR /etc/letsencrypt/archive/
You probably copied the /etc/letsencyrpt folder from another system or restored it from a backup.
But lost the symbolic links in the process.
Never copied or restored anything related to letsencrypt. Have been on same server since I started using. There indeed used to be these separate certificates before combined certificates were possible and simplified configs, but they no longer exist. I have no idea why they would be present now in any form - symlink or otherwise.