this post was submitted on 19 Sep 2026
326 points (96.0% liked)

Selfhosted

62233 readers
835 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. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I know that I can simply make my own private certificate authority that only I and my family trust. But is there some public provider like letsencrypt that is in a free-er part of the world than the US?

you are viewing a single comment's thread
view the rest of the comments
[–] talkingpumpkin@lemmy.world 30 points 2 days ago (2 children)

What risk are you trying to mitigate, specifically?

If it's the CA taking over your site, control over your CA specifically doesn't really give any advantage to an attacker (they would have to hijack traffic and provide a new certificate - nobody will notice if the certificate is from a different CA).

Note that your CA cannot decrypt the exchanges between your server and its clients.

[–] IpsumLauren@lemmy.world 2 points 2 days ago (3 children)

It opens the possibility of a man-in-the-middle attack.

[–] WhyJiffie@sh.itjust.works 22 points 2 days ago (2 children)

which is still there if you are not using lets encrypt, because they can strongarm them to make a fake cert for your domain, and install a proxy repackaging HTTPS traffic with the fake certificate. all browsers trust the lets encrypt root certificate, so they won't see anything suspicious.

the only thing there today to detect this (but not avoid) is certificate transparency logs. all modern certificates are required to be added to this log, for the CA to remain compliant. but browsers are not checking the logs, that would be a lot of additional traffic and how do they decide if a certificate was created maliciously? also, lets encrypt could afford being noncompliant, browser vendors can't realistically just distrust their root certificate, many sites would become inaccessible.

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

Oh snap! That definitely sounds possible. Found more info about it.

tl;dr: Either the attack is ineffective against some browsers that check the certificate transparency logs (like Chrome), or the attack is visible and the CA will lose all its credibility (hopefully being removed from the browsers).

[–] WhyJiffie@sh.itjust.works 4 points 2 days ago

it seems Firefox started doing the CT validation too, without needing to contact the CT log service: https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Certificate_Transparency#browser_requirements

[–] WhyJiffie@sh.itjust.works 3 points 2 days ago

and details: https://wiki.mozilla.org/SecurityEngineering/Certificate_Transparency

this sounds important:

This information has a 10 week expiration time. That is, if 10 weeks have passed since the information has been updated (typically by updating Firefox itself), the implementation will no longer enforce certificate transparency.

this also means, it can't truly verify SCT's that were issued since the last browser update?

[–] possiblylinux127@lemmy.zip 1 points 2 days ago (1 children)

Maybe I'm mistaken but aren't the logs cryptography verifiable? (As in you can't create a rouge cert without it creating a trace)

[–] WhyJiffie@sh.itjust.works 4 points 2 days ago (1 children)

apparently certs can have a cryptographic proof of having been included in the CT logs. but what do browsers do if the letsencrypt cert has no such proof?

[–] needanke@feddit.org 4 points 2 days ago

You can test that on this site:

https://no-sct.badssl.com/

[–] moonpiedumplings@programming.dev 5 points 2 days ago* (last edited 2 days ago)

Edit: no, it doesn't. Looking at the comments below, it's public key crypto.

Original comment:

The problem is that if that is your threat model, then the VPS provider, ISP, and literally everything between you and letsencrypt can pull a conpromised key fro letsencrypt.

This actually happened btw, an xmpp server was attacked this way, they compromised not the server itself, but the VPS provider MITMed their traffic: https://www.devever.net/~hl/xmpp-incident

If your threat model involves this, then the only solution is Tor, which eliminates these requirements of trust.

[–] talkingpumpkin@lemmy.world 2 points 2 days ago

Yep, that's what I described and any CA accepted by the client can do it

[–] Mihies@programming.dev -4 points 2 days ago* (last edited 1 day ago) (5 children)

~~Are you sure they can't decrypt? They have your certificate after all.~~ Besides, if the Orange has a bad day, he can ban certificates export or just for a single company or individual.

Edit: First two sentences were stupid, I apologize.

Yes, the private key never leaves your machine.

You send them a certificate signing request with your public key, they put their verification stamp on it and send it to you.

The only part they have to play is verifying that your certificate is trusted by a root certificate.

[–] litchralee@sh.itjust.works 9 points 2 days ago* (last edited 2 days ago) (1 children)

The CA cannot decypt: they don't have the secret key which only the server has. When requesting a new certificate from the CA, the server generated a secret key (aka private key) and then generated a derived public key that goes into a Certificate Signing Request (CSR). The CSR is what the CA receives, not the secret key, and then the CA returns the certificate file to the server, which has been endorsed by the CA and thus trusted by the user base.

Phrased another way, a certificate is the instrument that confirms that a purported public key can in-fact be safely used, and that no MITM attack is happening (assuming you trust the CA that signed the cert). But once you've confirmed the public key, the rest of the cryptography is public key cryptography, meaning the secrecy of the secret key is the whole game.

[–] Mihies@programming.dev 2 points 2 days ago

Yep, you guys are right.

[–] historicaldocuments@lemmy.world 2 points 1 day ago (1 children)

A MITM doesn't require decrypting. It just requires telling a convincing enough lie to each side of a conversation that they think they're talking to the other party. Then you end up encrypting to their key which they can just read. That's different from breaking the encryption.

Are you sure they can’t decrypt?

No, and none of the state actors who do that kind of stuff will ever tell you. Watch The Imitation Game for a good/bad time and some context.

If you had a break for the modern crypto schemes and published it right now you would shut down all digital commerce, a lot of the spy traffic if not most of it^1^, and nothing could be started back up again until everything was redone from scratch. Best hope would be that the post quantum algorithms^2^ the cryptographers have aren't succeptible to whatever you did to break the existing algorithms. It'd take a bit to get the software implementations and keys in place, etc. The hardware stuff would take longer.

  • [1] The stuff using One Time Pads would still be fine, but its limitations wouldn't take the place all of all the rest of it.
  • [2] The rollout of post quantum algorithms is going on now on a more accelerated schedule than originally planned.
[–] bunchberry@lemmy.world 1 points 21 hours ago (1 children)

Quantum computers only threaten asymmetric ciphers, so every symmetric cipher is still safe, not just one-time-pads but things like AES and ChaCha20 aren't affected at all.

[–] historicaldocuments@lemmy.world 1 points 21 hours ago

Ah. That's a misunderstanding on my part, and a good news story. Still don't want to wake up tomorrow and see a published AES break, though.

[–] possiblylinux127@lemmy.zip 3 points 2 days ago* (last edited 2 days ago) (1 children)

The certificate is only used for authentication. The actual data is encrypted with a temporary symmetric key that is generated via a diffie-hellman exchange

Even if they had your private key they still wouldn't be able to decrypt the data

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

They don't have your private key

[–] possiblylinux127@lemmy.zip 2 points 2 days ago

The private key isn't used for encryption