News for hackers. Stuff that matters.
Re:CA Root expired on 30 May 2020 by lmilcin on Saturday May 30, 2020 @03:53PM (#23364068)
All my applications use a component that watches certs configured (everything in cert and trust store) and returns warning in telemetry from the application if any of the certificates is less than a week from expiration. This is checked periodically while the application runs.

This not only makes sure we don't miss expiration but also ensures we don't forget to configure any of the application.

We had a situation when the cert was replaced but the file was placed in incorrect path and was not actually used by the app. Having the app report on what is actually being in use is the best way to prevent this from ever happening.

Re:CA Root expired on 30 May 2020 by kl4m on Saturday May 30, 2020 @06:05PM (#23365179)
Good old "cert replaced but apache/nginx failed to reload" has bitten me more than once...
Re:CA Root expired on 30 May 2020 by Sebb767 on Saturday May 30, 2020 @08:03PM (#23365978)
Me too! Especially with the short expiration times of LetsEncrypt. But I really don't want to put `nginx -s reload` in the Cron, in case I'm tinkering with the configs and they're suddenly live (which only really happens at staging or at home of course, but still).
Re:CA Root expired on 30 May 2020 by emilburzo on Sunday May 31, 2020 @03:59AM (#23368010)
You can use `nginx -t && nginx -s reload` for that.

It will first check the configs/paths, and only then, if successful, signal nginx to reload.

Re:CA Root expired on 30 May 2020 by Sebb767 on Monday June 01, 2020 @07:31AM (#23377401)
That's what I usually do. My problem is that I might be adding a location and nginx reloads between that and adding access restrictions (i.e. because I took a break to google).
Re:CA Root expired on 30 May 2020 by amaccuish on Sunday May 31, 2020 @07:07AM (#23368741)
Certbot has deploy hooks which is where I'd put the nginx reload statement. The hooks are run automatically when a new certificate is issued.
Re:CA Root expired on 30 May 2020 by Sebb767 on Monday June 01, 2020 @07:29AM (#23377375)
Oh, that's a great idea! Thanks :)
Re:CA Root expired on 30 May 2020 by colechristensen on Saturday May 30, 2020 @06:09PM (#23365215)
I've used this https://manpages.debian.org/testing/nagios-plugins-contrib/c...

After one scrambling emergency with a cert expiring in the middle of the day, a constant check with warnings and alerts a couple of weeks before expiry made a matter of defensive organization into something trivial.

Re:CA Root expired on 30 May 2020 by BurningFrog on Saturday May 30, 2020 @05:10PM (#23364757)
There is just no substitute for Reality!