Skip to content
New issue

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

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

Already on GitHub? # to your account

Eliminate dependency on GNU version of "date" #196

Merged
merged 5 commits into from
Oct 1, 2019
Merged

Eliminate dependency on GNU version of "date" #196

merged 5 commits into from
Oct 1, 2019

Conversation

GUI
Copy link
Collaborator

@GUI GUI commented Oct 1, 2019

Handle parsing the certificate expiration times from OpenSSL with Lua code for better cross-platform compatibility.

We were previously calling date --date to parse these times, but that --date flag is only supported by the GNU version of date. The BusyBox version of date (under Alpine Linux) does not support this type of parsing, and neither does the BSD version. Given these differences across default versions of the date utility, it seems better to handle this ourselves in a more explicit fashion.

As noted in #195 (comment), this dependency on GNU date originally cropped up in the v0.12.0 release, but it may have failed silently. v0.13.0 made these failures nosier in the logs, so this became more obvious. It shouldn't have affected any functionality, other than renewals not being as optimized, due to the certificate expiration date not being stored.

@GUI GUI merged commit f60f359 into master Oct 1, 2019
@GUI GUI deleted the no-gnu-date branch October 1, 2019 04:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant