summaryrefslogtreecommitdiffstats
path: root/tap
diff options
context:
space:
mode:
authorPeter (pir) Radcliffe <pir-gitweb.com@pir.net>2015-11-24 03:03:41 (GMT)
committerSven Nierlein <sven@nierlein.de>2016-11-07 21:42:40 (GMT)
commita3a78795b2951777d2586abc2ea9ef40ca4f4399 (patch)
tree4783ca87388d7be860126be9aabac4b05b537ce5 /tap
parent7276ce77c7f1dc682b6ac0b58d78445c6bb814bf (diff)
downloadmonitoring-plugins-a3a7879.tar.gz
Use GMT timezone in SSL certs
SSL certs are required to use times in GMT per https://www.ietf.org/rfc/rfc5280.txt but the mktime() here assumes the current timezone. Fix the time_t conversion to be done assuming GMT with timegm() and only do it once rather than twice. Display the expiry date and time with ISO format years and give an offset from GMT and a timezone to be very clear about exactly what time is being displayed. Time given is correct and now in the machine’s timezone.
Diffstat (limited to 'tap')
0 files changed, 0 insertions, 0 deletions