Live data from Hacker News

Githubassets.com Cert Has Expired

news.ycombinator.com

21–30 of 55 posts

Re: Githubassets.com Cert Has Expired

#21
post #9

There must be some kind of law "Every company will forget to renew a TLS certificate once" I know I can't throw stones in this particular greenhouse :)

Indeed, together with "deleted production database" it's a rite of passage, which is fine. Problem becomes when same issues pop up over and over again (looking at you Microsoft, re ssl renewals) and nothing is seemingly done to prevent it in the future.

Re: Githubassets.com Cert Has Expired

#22
post #20
post #7

Maybe browsers should put up a warning when a certificate is about to expire; say two weeks away. Nobody should let their certificate get that close to expiring, but if it does, you'd rather it generate a lot of visible warnings before simply ceasing to work at all.

Or how about the responsible engineers/testers/managers/whatevers setup proper testing infrastructure for the multi-million projects run by their huge international corporate? Feels like it's not a lot to ask for the most basic testing like checking when certs expire, setup automation to renew it and have fail-safes/error reporting in case the renewal fails.

Tests can have bugs too.

Re: Githubassets.com Cert Has Expired

#23
post #18

This is a script I call "certdays.sh" which you can call from your regular tests like this: certdays.sh somedomain.com 14 If the certificate for somedomain.com is valid less then 14 days, it will fail: https://github.com/no-gravity/certdays

Don't call it from tests though, call it from a monitoring system!

Re: Githubassets.com Cert Has Expired

#24
post #18

This is a script I call "certdays.sh" which you can call from your regular tests like this: certdays.sh somedomain.com 14 If the certificate for somedomain.com is valid less then 14 days, it will fail: https://github.com/no-gravity/certdays

Is the '25' in 606025 intentional to give a bit more margin or should it just have been 24?

Re: Githubassets.com Cert Has Expired

#25
if you're using nagios, setup something like

  command_name  check_certificate
  command_line  $USER1$/check_http -H $ARG1$ -p $ARG2$ -4 -S -C 21 -t 20 --sni
this won't warn about certificate name mismatches though

Re: Githubassets.com Cert Has Expired

#26
post #20

Earlier quoted context omitted.

Or how about the responsible engineers/testers/managers/whatevers setup proper testing infrastructure for the multi-million projects run by their huge international corporate? Feels like it's not a lot to ask for the most basic testing like checking when certs expire, setup automation to renew it and have fail-safes/error reporting in case the renewal fails.

Tests can have bugs too.

Indeed, that's true! Not only you have to write the tests, you also have to verify it's working, and have monitoring connected to ensure it's continuously working.

But still, multi-million companies should surely be able to handle that.

Re: Githubassets.com Cert Has Expired

#28
post #20

Earlier quoted context omitted.

Or how about the responsible engineers/testers/managers/whatevers setup proper testing infrastructure for the multi-million projects run by their huge international corporate? Feels like it's not a lot to ask for the most basic testing like checking when certs expire, setup automation to renew it and have fail-safes/error reporting in case the renewal fails.

Tests can have bugs too.

It's partially cloudy in NY today.

Re: Githubassets.com Cert Has Expired

#29
post #24
post #18

This is a script I call "certdays.sh" which you can call from your regular tests like this: certdays.sh somedomain.com 14 If the certificate for somedomain.com is valid less then 14 days, it will fail: https://github.com/no-gravity/certdays

Is the '25' in 60 60 25 intentional to give a bit more margin or should it just have been 24?

Ha, I guess I made a typo when I wrote the script 6 months ago. At least I cannot remember that I had some clever idea back then, why a day should have 25 hours.

Fixed now. Thanks.

Re: Githubassets.com Cert Has Expired

#30
post #25

if you're using nagios, setup something like command_name check_certificate command_line $USER1$/check_http -H $ARG1$ -p $ARG2$ -4 -S -C 21 -t 20 --sni this won't warn about certificate name mismatches though

That warns only after the fact, not in advance... depending on how the infrastructure (and especially the cert procuring process, for those not using LE for whatever reason) is set up, too late.
Post reply on HN