im using this in my crontab. @daily /home/letsencrypt/letsencrypt-auto certonly --config /etc/letsencrypt/cli.ini >> /var/log/log/letsencrypt.log
in the log it shows
Checking for new version…
Requesting root privileges to run letsencrypt…
/root/.local/share/letsencrypt/bin/letsencrypt certonly --config /etc/letsencrypt/cli.ini
Checking for new version…
Upgrading letsencrypt-auto 0.5.0 to 0.6.0…
Replacing letsencrypt-auto…
cp -p /home/letsencrypt/letsencrypt-auto /tmp/tmp.y0WLgzlaK9/letsencrypt-auto.permission-clone
cp /tmp/tmp.y0WLgzlaK9/letsencrypt-auto /tmp/tmp.y0WLgzlaK9/letsencrypt-auto.permission-clone
mv -f /tmp/tmp.y0WLgzlaK9/letsencrypt-auto.permission-clone /home/letsencrypt/letsencrypt-auto
but it doesn’t update my cert its valid too 27-5-2016
when i run that command from the command line it updates my cert ( it did last time) so i put it on a cronjob. it also runs everyday but it only seems to update the version.
Is there a reason you’re not simply using “renew”?
Once you’ve created the certificate, it records the settings you used to create it, and uses them again when you “letsencrypt renew”. When you use “renew”, it checks the expiry on your certificates, and will automatically renew them once you have 30 days remaining. This has been an available option since… 0.3? 0.4? A while!
letsencrypt renew --dry-run
Currently, the renew verb is only capable of renewing all installed certificates that are due to be renewed; individual domains cannot be specified with this action. If you would like to renew specific certificates, use the certonly command. The renew verb may provide other options for selecting certificates to renew in the future.
i kept keeping this message even when it was up for renewal.
The problem is the domains = Domains in the ini file. letsencrypt renew interprets that as though you told it to renew those specific domains but not others, which it is not able to do. If you remove the domains = Domains from your ini file, letsencrypt renew should be able to proceed.
2016-05-18 06:56:09,561:ERROR:letsencrypt_apache.configurator:No vhost exists wi th servername or alias of: domain. No vhost was selected. Please specify s ervernames in the Apache config
2016-05-18 06:56:09,721:WARNING:letsencrypt.renewal:Attempting to renew cert fro m /etc/letsencrypt/renewal/domain.conf produced an unexpected error: No vh ost selected. Skipping.
** DRY RUN: simulating ‘letsencrypt renew’ close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/Domain/fullchain.pem (failure)
** DRY RUN: simulating ‘letsencrypt renew’ close to cert expiry
** (The test certificates above have not been saved.)
1 renew failure(s), 0 parse failure(s)
i commented out the domains =
and retried the command now i get this error.