I could create a cert using the following command:
./letsencrypt-auto certonly -a webroot --webroot-path=/var/www/ -d mydomain.tld
In ngnix virtual host configuration file I use the following configuration:
listen 443 ssl http2; listen [::]:443 ssl http2; server_name mydomain.tld; ssl_certificate /etc/letsencrypt/live/mydomain.tld/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/mydomain.tld/privkey.pem; ...
It was working fine until yesterday when hte cert expired. Then I run:./letsencrypt-auto certonly -a webroot --webroot-path=/var/www/ -d mydomain.tld`. The output was:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/mydomain.tld/fullchain.pem. Your cert
will expire on 2016-09-22. To obtain a new or tweaked version of
this certificate in the future, simply run letsencrypt-auto again.
To non-interactively renew all of your certificates, run
If you like Certbot, please consider supporting our work by:
I’ve restarted the server but the certificate is still expired. Tried to replace the cert and run
./letsencrypt-auto renew but it says that the cert is not due. Any clues?