diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-12-15 17:36:57 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-12-15 17:36:57 +0000 |
commit | f31e9c0b3b7f8e98c19aad103a00660c1caa551a (patch) | |
tree | e9138db015450069d7d24c49144d31477855131c /usr.sbin/chroot/chroot.c | |
parent | b1f1a6d0a50ba18496b3e209cc6bcec0f627861c (diff) |
acme-client: use timegm() instead of mktime()
Times in certificates are all expressed in Zulu time, so calling the time
zone dependent mktime() on such a time and comparing it to time(NULL) is
wrong.
This means that the check of at least 30 days validity and deciding on
whether to renew or not might have been off by by half a day depending on
where you are. That should not matter since you (or cron) are supposed to
run acme-client way more often than once a month.
ok claudio millert
Diffstat (limited to 'usr.sbin/chroot/chroot.c')
0 files changed, 0 insertions, 0 deletions