• TheInsane42@lemmy.world
    link
    fedilink
    English
    arrow-up
    45
    ·
    edit-2
    9 months ago

    GPG signatures are set by the sender to prove the message is originating from the sender and is unchanged. It’s signed with the private key and verified with the public key.

    It is in no way a method to verify if the information is correct or rubbish. I can tell you the earth is flat and sign it, but all you know on verifying the signature is that the info was unaltered, not if it’s correct or not.

    • Tanoh@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      9 months ago

      GPG signatures are set by the sender to prove the message is originating from the sender and is unchanged. It’s signed with the private key and verified with the public key.

      A bit of a nitpick, but important to keep in mind. The GPG signatures shows that someone that has access to the private key sent that message. If I somehow gets a hold of a copy of your key, I can send messages that seems to originate from you.

      • TheInsane42@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        9 months ago

        To nit-pick a tad more, when they have access to my key and have my passphrase so they can sign with it…

        That’s why you set the passphrase on keys, gpg, ssh,… Never use a encryption without a key. That way you need posession (key) and knowledge (passphrase) to identify yourself. When you use ssh, use the ssh agent, when you have automated login which would be better to use without keyphrase, use a different pair (specify wuth -i option) and limit access with that to a fixed ip.

        And always protect your key. No cloud backup…

        Edit: GPG keys also can be signed. Not by specific companies (there is probably a service for that, but it’s not by design), but by other people knowing each other. That way you have a trust based on who knows who, not who has more cash…

        Same with ssh keys, you can sign those as well and set sshd to accept anybody with a certificate signed by ‘x’ to access the server on the same account name the cert was issued for.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      It can’t help to guarantee the truth, but it can be used to verify that information comes from a certain source.

      So, for example, if Russia created a deep fake video of Zelensky declaring that Ukraine is giving up the war and that troops should stop fighting back, then that kind of misinformation could be disproven, if Zelensky normally uses GPG-signed communication.