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?

  • talkingpumpkin@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    8 hours ago

    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.

      • WhyJiffie@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        10
        ·
        5 hours ago

        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.

      • moonpiedumplings@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours 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.

    • Mihies@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 hours ago

      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.

      • KyuubiNoKitsune@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        13
        ·
        6 hours ago

        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
        link
        fedilink
        English
        arrow-up
        6
        ·
        6 hours ago

        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.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        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