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
-/* $Id: revokeproc.c,v 1.22 2022/12/15 16:59:04 tb Exp $ */
+/* $Id: revokeproc.c,v 1.23 2022/12/15 17:36:56 tb Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
return -1;
}
- return mktime(&t);
+ return timegm(&t);
}
int