591

I've been downloading SSL certificates from my domain provider, using cat to join them together to make the fullchain.pem, uploading them to the server, and myself adding a 90 day calendar reminder. Every time I did this I'd think I should find out about this Certbot thing.

Well, I finally got around to it, and it was one of those jobs which turns out to be so easy you wish you'd done it ages ago.

The install was simple (I'm using nginx/ubuntu).

It scans up your server conf files to see which sites are being served, asks you a couple of questions, obtains the Let's Encrypt certificate for them, installs it, updates your conf files to use it, and sets up a cron job to check if it's time to renew the certificate, which it will also do auto-magically.

I was so pleased with it I made a donation to the EFF for it, then I started to think about how amazingly useful Let's Encrypt is, and gave them one too. It's just a really good time to be in this hobby.

I highly recommend Certbot. If you've been putting this off, or only just hearing about it, make some time for it.

you are viewing a single comment's thread
view the rest of the comments
[-] vegetaaaaaaa@lemmy.world 8 points 1 year ago
[-] CubitOom@infosec.pub 14 points 1 year ago

Wait till you guys use cert-manager on a kubernetes cluster

[-] SheeEttin@lemmy.world 14 points 1 year ago

Wait until you stand up your own CA and issue certs with multi-year validity so they don't have to be renewed more often than you rebuild everything anyway

At least until you try to access stuff on a Pixel phone which doesn't let you install CA certs any more 😞

[-] dauerstaender@feddit.de 16 points 1 year ago

Having certificates that are valid for over a year is contra-productive, as when they get in to the wrong hands they might still be valid for a year until they naturally run out of time. The reason LetsEncrypt issues only 90d valid certificates is not to annoy you, but save your ass once someone obtains your certificates.

[-] bane_killgrind@lemmy.ml 8 points 1 year ago

Which they will, because we are all bad at security.

[-] FrederikNJS@lemm.ee 5 points 1 year ago

While shorter lived certs certainly improve the general security, certificate revocation lists are what you need if a cert gets compromised.

[-] dauerstaender@feddit.de 7 points 1 year ago

They don’t work in practice, no modern browser actively queries any revocation DBs. It’s just much more efficient to let something expire sooner than keep track of all lost somethings.

[-] dan@upvote.au 1 points 1 year ago

Exactly this. The CA/B forum (who make rules about TLS certificates that all the providers follow) are actively trying to reduce certificate validity periods. 2-3 years ago, they reduced the maximum duration for TLS certificates to 13 months. It's likely they'll go even lower in the future.

My understanding is that they want the entire industry to move towards a Let's Encrypt style system where renewal is fully automated and thus there's minimal overhead to renewing more frequently. We're not quite there yet.

load more comments (6 replies)
load more comments (6 replies)
load more comments (6 replies)
this post was submitted on 08 Sep 2023
591 points (97.9% liked)

Selfhosted

39677 readers
246 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.

Resources:

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

Questions? DM the mods!

founded 1 year ago
MODERATORS