Live data from Hacker News

Githubassets.com Cert Has Expired

news.ycombinator.com

51–55 of 55 posts

Re: Githubassets.com Cert Has Expired

#51
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

Hmm, if I copy/paste this, I get a different output:

    ~  ~/certdays.sh google.com 14
    date: illegal time format
    usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [- 
    v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] 
    [+format]
    google.com: -18568
    -n Lasts longer then 14 days?
    NO!!!!!!!!!!!!!!

Re: Githubassets.com Cert Has Expired

#52
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

Hmm, if I copy/paste this, I get a different output: ~ ~/certdays.sh google.com 14 date: illegal time format usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [- v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] google.com: -18568 -n Lasts longer then 14 days? NO!!!!!!!!!!!!!!

Works for me. In Bash? Maybe copy/paste gone wrong?

I have put it into a Github repo now and put the link into the post. Does that work for you?

Re: Githubassets.com Cert Has Expired

#53
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

Hmm, if I copy/paste this, I get a different output: ~ ~/certdays.sh google.com 14 date: illegal time format usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [- v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] google.com: -18568 -n Lasts longer then 14 days? NO!!!!!!!!!!!!!!

Are you running it on macOS or something non-Linux?

Re: Githubassets.com Cert Has Expired

#54
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

Hmm, if I copy/paste this, I get a different output: ~ ~/certdays.sh google.com 14 date: illegal time format usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [- v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] google.com: -18568 -n Lasts longer then 14 days? NO!!!!!!!!!!!!!!

You can brew install coreutils and edit it to use gdate instead of date.

Re: Githubassets.com Cert Has Expired

#55
post #53

Earlier quoted context omitted.

Hmm, if I copy/paste this, I get a different output: ~ ~/certdays.sh google.com 14 date: illegal time format usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [- v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] google.com: -18568 -n Lasts longer then 14 days? NO!!!!!!!!!!!!!!

Are you running it on macOS or something non-Linux?

Ah, yes I am running it on macOS Mojave
Post reply on HN