this post was submitted on 02 Dec 2025
458 points (99.1% liked)

Selfhosted

53304 readers
209 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Let’s Encrypt will be reducing the validity period of the certificates we issue. We currently issue certificates valid for 90 days, which will be cut in half to 45 days by 2028.
This change is being made along with the rest of the industry, as required by the CA/Browser Forum Baseline Requirements, which set the technical requirements that we must follow. All publicly-trusted Certificate Authorities like Let’s Encrypt will be making similar changes. Reducing how long certificates are valid for helps improve the security of the internet, by limiting the scope of compromise, and making certificate revocation technologies more efficient.

top 50 comments
sorted by: hot top controversial new old
[–] Psythik@lemmy.world 9 points 1 day ago (1 children)

Shit like this is why building websites is no longer fun for me like it was back in the 90s and 2000s. There's way too much security shit to worry about now.

[–] MonkeMischief@lemmy.today 3 points 1 day ago

"You can set up your own email server at home, for fun!"

-- The 90's, Probably.

Lol. I'm kinda sad I missed out on that expressive time of making websites when I was growing up. You're right, now everything is very homogenized and there's a billion botswarms just waiting for you to be 3 seconds late to a security update so they can zombify your site for...

(Flips papers) Crypto somehow... it's always crypto.

Internet crime isn't even cool anymore. Lol

[–] arc99@lemmy.world 17 points 2 days ago (1 children)

I still think the web would have been better off if certificates were signed and part of a web of trust like in GPG/PGP. It wouldn't stop sites from using trusted CAs to increase their trust levels with browsers, but it would mean that tiny websites wouldn't need to go through layers of mandatory bullshit and inconvenience. Also means that key signers could have meaningful business relationships rather than being some random CA that nobody has a clue about.

[–] N0x0n@lemmy.ml 6 points 2 days ago* (last edited 2 days ago)

3 letter organisms: NSA - CIA. People tend to think that's a conspiracy theory... Even though we have so many real life examples about how the US and the 3 letters agencies have their hands all over the web and privacy and encryption is just a wet dream !

[–] nialv7@lemmy.world 69 points 2 days ago (17 children)

I'm sorry but if you aren't using automated renewals then you are not using let's encrypt the way it's intended to be used. You should take this as an opportunity to get that set up.

[–] jj4211@lemmy.world 10 points 2 days ago (7 children)

Ours is automated, but we incur downtime on the renewal because our org forbids plain http so we have to do TLS-ALPN-01. It is a short downtime. I wish let's encrypt would just allow http challenges over https while skipping the cert validation. It's nuts that we have to meaningfully reply over 80...

Though I also think it's nuts that we aren't allowed to even send a redirect over 80...

[–] Atemu@lemmy.ml 1 points 8 hours ago (1 children)

Forgive my ignorance but why would that incur a downtime?

The only way I can think of for downtime to happen if you switched certs before the new one was signed (in which case ..don't) or am I missing something?

It also strikes me as weird that LE requires 80 but does allow insecure 443 after a redirect. Why not just do/allow insecure 443 in the first place?

[–] jj4211@lemmy.world 1 points 6 hours ago

the TLS-ALPN-01 challenge requires a https server that implements generating a self-signed certificate on demand in response to a specific request. So we have to shut down our usual traffic forwarder and let an ACME implementation control the port for a minute or so. It's not a long downtime, but irritatingly awkward to do and can disrupt some traffic on our site that has clients from every timezone so there's no universal '3 in the morning' time, and even then our service is used as part of other clients '3 in the morning' maintenance windows... Folks can generally take a blip in the provider but don't like that we generate a blip in those logs if they connect at just the wrong minute in a month...

As to why not support going straight to 443, don't know why not. I know they did TLS-ALPN-01 to keep it purely as TLS extensions to stay out of the URL space of services which had value to some that liked being able to fully handle it in TLS termination which frequently is nothing but a reverse proxy and so in principle has no business messing with payload like HTTP-01 requires. However for nginx at least this is awkward as nginx doesn't support it.

[–] kungen@feddit.nu 12 points 2 days ago (1 children)

Hot take: for-profit orgs should be buying TLS certificates from the CA cartel instead of using Let's Encrypt. Unless you're donating to LE, and in that case it's cool.

[–] jj4211@lemmy.world 2 points 1 day ago

Frankly, another choice virtually forced by the broader IT.

If the broader IT either provides or brokers a service, we are not allowed to independently spend money and must go through them.

Fine, they will broker commercial certificates, so just do that, right? Well, to renew a certificate, we have to open a ticket and attach our csr as well as a "business justification" and our dept incurs a hundred dollar internal charge for opening that ticket at all. Then they will let it sit for a day or two until one of their techs can get to it. Then we are likely to get feedback about something like their policy changing to forbid EC keys and we must do RSA instead, or vice versa because someone changed their mind. They may email an unexpected manager for confirmation in accordance to some new review process they implemented. Then, eventually, their tech manually renews it with a provider and attaches the certificate to the ticket.

It's pretty much a loophole that we can use let's encrypt because they don't charge and technically the restrictions only come in when purchasing is involved. There was a security guy raising hell that some of our sites used that "insecure" let's encrypt and demanding standards change to explicitly ban them, but the bearaucracy to do that was insurmountable so we continue.

[–] nialv7@lemmy.world 6 points 2 days ago (2 children)

our org forbids plain http

is redirecting http to https also out of the question? because let's encrypt HTTP-01 accepts http -> https redirects:

Our implementation of the HTTP-01 challenge follows redirects, up to 10 redirects deep. It only accepts redirects to “http:” or “https:”, and only to ports 80 or 443. It does not accept redirects to IP addresses. When redirected to an HTTPS URL, it does not validate certificates.

load more comments (2 replies)
load more comments (4 replies)
[–] Mikelius@lemmy.ml 7 points 2 days ago (2 children)

I've got it setup automated on all my external domains, but trying to automate it on my internal-only domain is rather tedious since not only do I NOT want to open a port for it to confirm, but I have 2 other devices/services on the network not behind my primary reverse proxy that share the same cert.

What In need to do is setup my own custom cron that hits the hosting provider to update the DNS txt entries. Then I need to have it write and restart the services that use the cert. I've tried to automate this once before and it did not go so smoothly so I've been hesitant on wasting time to try it again... But maybe it's time to.

What would be ideal is if I could allow it to be automated just by getting a one time dns approval and storing a local private/public key to prove to them that I'm the owner of the domain or something. Not aware of this being possible though.

load more comments (2 replies)
load more comments (15 replies)
[–] angband@lemmy.world 22 points 2 days ago (1 children)
[–] OCT0PUSCRIME@programming.dev 16 points 2 days ago (1 children)

Might as well adjust the setting now. I had that same feeling for something they changed several years ago and never got around to changing it til all my stuff went down lol.

load more comments (1 replies)
[–] Arghblarg@lemmy.ca 112 points 3 days ago (31 children)

So what's the floor here realistically, are they going to lower it to 30 days, then 14, then 2, then 1? Will we need to log in every morning and expect to refresh every damn site cert we connect to soon?

It is ignoring the elephant in the room -- the central root CA system. What if that is ever compromised?

Certificate pinning was a good idea IMO, giving end-users control over trust without these top-down mandated cert update schedules. Don't get me wrong, LetsEncrypt has done and is doing a great service within the current infrastructure we have, but ...

I kind of wish we could just partition the entire internet into the current "commercial public internet" and a new (old, redux) "hobbyist private internet" where we didn't have to assume every single god-damned connection was a hostile entity. I miss the comraderie, the shared vibe, the trust. Yeah I'm old.

[–] atzanteol@sh.itjust.works 101 points 3 days ago (15 children)

Will we need to log in every morning and expect to refresh every damn site cert we connect to soon?

Automate your certificate renewals. You should be automating updates for security anyway.

[–] dan@upvote.au 48 points 3 days ago* (last edited 3 days ago) (2 children)

This is one of the reasons they're reducing the validity - to try and convince people to automate the renewal process.

That and there's issues with the current revocation process (for incorrectly issued certificates, or certificates where the private key was leaked or stored insecurely), and the most effective way to reduce the risk is to reduce how long any one certificate can be valid for.

A leaked key is far less useful if it's only valid or 47 days from issuance, compared to three years. (note that the max duration was reduced from 3 years to 398 days earlier this year).

From https://www.digicert.com/blog/tls-certificate-lifetimes-will-officially-reduce-to-47-days:

In the ballot, Apple makes many arguments in favor of the moves, one of which is most worth calling out. They state that the CA/B Forum has been telling the world for years, by steadily shortening maximum lifetimes, that automation is essentially mandatory for effective certificate lifecycle management.

The ballot argues that shorter lifetimes are necessary for many reasons, the most prominent being this: The information in certificates is becoming steadily less trustworthy over time, a problem that can only be mitigated by frequently revalidating the information.

The ballot also argues that the revocation system using CRLs and OCSP is unreliable. Indeed, browsers often ignore these features. The ballot has a long section on the failings of the certificate revocation system. Shorter lifetimes mitigate the effects of using potentially revoked certificates. In 2023, CA/B Forum took this philosophy to another level by approving short-lived certificates, which expire within 7 days, and which do not require CRL or OCSP support.

load more comments (2 replies)
load more comments (14 replies)
[–] JASN_DE@feddit.org 34 points 3 days ago (2 children)

So what's the floor here realistically, are they going to lower it to 30 days, then 14, then 2, then 1?

LE is beta-testing a 7-day validity, IIRC.

Will we need to log in every morning and expect to refresh every damn site cert we connect to soon?

No, those are expected or even required to be automated.

load more comments (2 replies)
load more comments (29 replies)
[–] Jozav@lemmy.world 41 points 3 days ago (3 children)

Reducing the validity timespan will not solve the problem, it only reduces the risk. And how big is that risk really? I'm an amateur and would love to see some real malicious case descriptions that would have been avoided had the certificate been revoked earlier...

Anybody have some pointers?

[–] groet@feddit.org 14 points 2 days ago

Terminology: revoked means the issuer of the certificate has decided that the certificate should not be trusted anymore even though it is still valid.

If a attacker gets access to a certificates key, they can impersonate the server until the validity period of the cert runs out or it is revoked by the CA. However ... revocation doesn't work. The revocation lists arent checked by most clients so a stolen cert will be accepted potentially for a very long time.

The second argument for shorter certs is adoption of new technology so certs with bad cryptographic algorithms are circled out quicker.

And third argument is: if the validity is so short you don't want to change the certs manually and automate the process, you can never forget and let your certs expire.

We will probably get to a point of single day certs or even one cert per connection eventually and every step will be saver than before (until we get to single use certs which will probably fuck over privacy)

load more comments (2 replies)
[–] probable_possum@leminal.space 40 points 3 days ago* (last edited 3 days ago) (2 children)

It's the "change your password often odyssey" 2.0. If it is safe, it is safe, it doesn't become unsafe after an arbitrary period of time (if the admin takes care and revokes compromised certs). If it is unsafe by design, the design flaw should be fixed, no?

Or am I missing the point?

[–] LastYearsIrritant@sopuli.xyz 54 points 3 days ago (13 children)

The point is, if the certificate gets stolen, there's no GOOD mechanism for marking it bad.

If your password gets stolen, only two entities need to be told it's invalid. You and the website the password is for.

If an SSL certificate is stolen, everyone who would potentially use the website need to know, and they need to know before they try to contact the website. SSL certificate revocation is a very difficult communication problem, and it's mostly ignored by browsers because of the major performance issues it brings having to double check SSL certs with a third party.

load more comments (13 replies)
[–] cron@feddit.org 31 points 3 days ago (6 children)

Short lifespans are also great when domains change their owner. With a 3 year lifespan, the old owner could possibly still read traffic for a few more years.

When the lifespan ist just 30-90 days, that risk is significatly reduced.

load more comments (6 replies)
[–] Passerby6497@lemmy.world 32 points 3 days ago (2 children)

I've been dreading this switch for months (I still am, but I have been, too!) considering this year and next year will each double the amount of cert work my team has to do. But, I'm hopeful that the automation work I'm doing will pay off in the long run.

[–] non_burglar@lemmy.world 45 points 3 days ago (1 children)

Are you not using LE certbot to handle renewals? I can't even imagine doing this manually.

[–] Passerby6497@lemmy.world 32 points 3 days ago (7 children)

Personally, yes. Everything is behind NPM and SSL cert management is handled by certbot.

Professionally? LOL NO. Shit is manual and usually regulated to overnight staff. Been working on getting to the point it is automated though, but too many bespoke apps for anyone to have cared enough to automate the process before me.

load more comments (7 replies)
load more comments (1 replies)
load more comments
view more: next ›