Skip to content

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
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.

1 participant