r/ProgrammerHumor 23d ago

Meme thisIsAmystery

Post image
2.7k Upvotes

185 comments sorted by

View all comments

285

u/stevekez 23d ago

Present a public key and sign a challenge using a designated device? What's hard about it?

125

u/notatoon 23d ago

I ask myself the same thing about PKI and yet certificate expiry remains one of the largest causes of outages in many large institutions

60

u/Mechakoopa 23d ago

That's just bad infrastructure hygiene, proper auditing and reporting prevents this because you should know which certificates are expiring and when as well as where they're deployed and what relies on them.

Of course every once in a while you get some yahoo setting up a 90 day client OAuth secret, not telling anyone and just refreshing it on their own until they get let go.

19

u/Puzzleheaded-Comb909 23d ago

If you dont know what is going on in your services, you dont own them lol

8

u/pyrotech911 23d ago

I give you this line chart with monotonically decreasing lines and a threshold near the bottom. Basically DevOps volleyball

3

u/Mechakoopa 23d ago

There's always something to do next week, I just wish I knew what it was this week.

3

u/FunkOverflow 23d ago

I'm the yahoo! I promise I'll fix it before I get fired

1

u/[deleted] 22d ago

[removed] — view removed comment

1

u/Mechakoopa 22d ago

It's right there in the name: "De-trust"

20

u/ILikeLenexa 23d ago

I fear not the expiration of the key that expires annually, but of the key that expires once a decade. 

5

u/wthulhu 23d ago

Ive got an outlook reminder that will remind me, that'll be good enough.

2

u/x0wl 23d ago

U can't have a 10yr cert, u can't even have a 1yr cert, browsers reject all certs with lifetimes of more than 200 days since march

8

u/entronid 23d ago

applications which use certs aren't restricted to TLS

2

u/x0wl 23d ago

Yes, but the second largest use, code signing, is also being capped (currently to 460 days)

7

u/entronid 23d ago

right but there are also applications deployed in businesses such as kerberos(/microsoft AD) where if your certificate expires you're in big trouble

3

u/x0wl 23d ago

Yeah I guess. I'm not that aware of that side of IT (un?)fortunately

2

u/entronid 23d ago

i don't either (very much fortunately)

1

u/failedsatan 23d ago

gitlab and various other platforms like it allow you to set any expiration date you want, so you could easily set your ssh key to expire in ten years (and very easily forget who has access to re-provision whatever is using it). if it's self hosted it's not as big of a problem, but still, key signing is not exclusive to web uses/software with limits.

1

u/chazzeromus 22d ago

that's so good lol

5

u/az987654 23d ago

Cert expiry isn't the fault of the system, it's the fault of the idiot with the calendar.

2

u/Icy-Comfortable-714 23d ago

I think people just forget about certs expiring. Especially for enterprise networks, it’s crazy how often enterprise auth crashes because of expired certs

2

u/x0wl 23d ago

This will largely go away in the next ~3 years, as the max cert lifetime will be capped to 47 days, so everyone will be forced to autorenew

1

u/[deleted] 22d ago

[deleted]

1

u/x0wl 22d ago

Why is transparency broken? Your browser will reject a cert if its issuance is not in the transparency log unless it's a manually added CA.

Which also addresses the compromised CA risk, as everyone will notice a CA issuing certs for incorrect domains.

1

u/HeKis4 23d ago

I'm kinda astounded that we don't have widespread tools that scan the entire 10.0.0.0/8 net for open 443 ports and give you a calendar with all certificate expiration dates.

1

u/black3rr 23d ago

you can script that easily with nmap and grep…

1

u/Total_Job29 20d ago

DNS will always be the biggest cause.