better detection of when a certificate has expired

2 jobs for dev in 3 minutes and 32 seconds (queued for 1 second)