Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add optional cron job for certificate renewal #8

Merged
merged 4 commits into from
Jan 3, 2016

Conversation

hdeadman
Copy link
Contributor

This creates a cronjob that sets up a daily job to re-run letsencrypt-auto with same arguments plus the --keep-until-expiring argument so that certificate will be renewed when it is close to expiring. I tested this on a server with two websites on it and it scheduled two jobs which ran OK but didn't renew certificate because they aren't close to expiring. When I ran the command manually with the renew-by-default argument it did renew the certificate (but early).

command => $renewcommand,
user => root,
hour => $cron_hour,
minute => $cron_minute,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The syntax check is failing due to trailing whitespace on this line.

@danzilio
Copy link
Member

danzilio commented Jan 2, 2016

Hi @hdeadman! Thanks for the PR! I've left some comments inline. Also, can you please add a test for this feature?

@hdeadman
Copy link
Contributor Author

hdeadman commented Jan 3, 2016

OK, thanks for the feedback. I made the updates you requested.

danzilio added a commit that referenced this pull request Jan 3, 2016
add optional cron job for certificate renewal
@danzilio danzilio merged commit 99a2ef3 into voxpupuli:master Jan 3, 2016
@danzilio
Copy link
Member

danzilio commented Jan 3, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants