๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ s โ€บ Gemini โ€บ 1123 captured on 2023-06-16 at 17:01:09. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2023-06-14)

โžก๏ธ Next capture (2023-07-10)

-=-=-=-=-=-=-

Expiration of self-signed certificates

Does it make sense to use Not After on self-signed gemini server and client certificates, so that they expire after some time?

I long ago came to the conclusion that it doesn't make sense, but it still seems to be standard practice, so I'm worried that I may have missed something. Have I?

Certainly you shouldn't expect a self-signed certificate to be usable forever -- the private key might be compromised one day, and anyway the underlying encryption will eventually be broken. But you've no way of knowing in advance when that will be. You could hope that having certificates expire limits the damage from a compromised private key, but since certificates expire there has to be some mechanism for forwarding trust from one certificate to a new one (like Bubble's "add alternative certificate", or just serving a new certificate from a gemini server), which an attacker exploiting your compromised key could use before the certificate expires.

The alternative is to set Not After to 99991231235959Z, which according to RFC5280 indicates that the certificate has no well-defined expiration date.

Posted in: s/Gemini

๐Ÿš€ mbays

2023-05-27 ยท 3 weeks ago

4 Comments โ†“

๐Ÿš€ skyjake

I think 99991231235959Z would make sense as a default for client certificates, and why not for server certificates as well.

IMO, having the ability to set an expiration date is still useful for special use cases, like when you want to have a throwaway identity that expires in a month, or there is some sort of service that is only supposed to be available for a fixed period of time.

๐Ÿš€ mbays

@skyjake Cool, then consider this a feature request for Lagrange, to have that as the default for new client certs!

I guess you're right that in the rare circumstance that you really know the identity should expire after some fixed time, it could make sense to set Not After, because it saves you from having to securely delete the certificate and lets the server know that it can safely forget about you. I'm not sure that having this option is worth all the headaches it can cause, though.

๐Ÿค– alexlehm

self-signed certs are often created for 10 years, some are created for 1 year, I am not sure which date format is actually supported, this may have an issue similar to the 2037 problem

๐Ÿš€ skyjake

@mbays

โ€” /s/Lagrange-Issues/issues/22