this post was submitted on 08 Aug 2024
502 points (99.2% liked)

Selfhosted

60426 readers
383 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BestBouclettes@jlai.lu -3 points 2 years ago (2 children)

For self hosting at least, having your own CA is a pain in the ass to make sure everything is safe and that nobody except you has access to your CA root key.
I'm not saying it's not doable, but it's definitely a lot of work and potentially a big security risk if you're not 100% certain of what you're doing.

[–] atzanteol@sh.itjust.works 8 points 2 years ago

No worse than protecting your ssh key. Just keep it somewhere safe.

[–] Petter1@lemm.ee 1 points 2 years ago (1 children)

Just use only VPN to access your services behind the reverse proxy, if you want prevent unauthorised connections.

CA certificates are not here to prevent someone accessing a site, they are here, so that you can be sure, that the server you are talking to is really the one belonging to the domain you entered and to establish a tunnel in order to send the API calls (html, css, javascript etc.) and answers encrypted.

[–] BestBouclettes@jlai.lu 1 points 2 years ago (1 children)

That's the problem, if anyone somehow gets your root CA key, your encryption is pretty much gone and they can sign whatever they want with your CA.
It's a lot of work to make sure it's safe in a home setup.

[–] prime_number_314159@lemmy.world 6 points 2 years ago (1 children)

You can just issue new certificates one per year, and otherwise keep your personal root CA encrypted. If someone is into your system to the point they can get the key as you use it, there are bigger things to worry about than them impersonating your own services to you.

[–] Petter1@lemm.ee 2 points 2 years ago

And additionally, you can sign intermediate Certificates reducing the risk even more, since you can revoke and re-issue new ones any time.