I’ve been trying to add my PGP key to the torrc file under the Contact Info but doing so keeps giving me the following error message: [warn] Failed to parse/validate config: Unknown option '-----BEGIN PGP PUBLIC KEY BLOCK----- <HASH>
. How can I include my PGP key so that it doesn’t cause errors?
Make sure your ContactInfo is one line. To include a gpg/pgp-key you may use the fingerprint of it, if you uploaded it somewhere where it might be found by others…
An example with gpg: is here: Relay Search
In short: use the hash value, not the public key itself.
Thanks for sharing the example! I looked into how to make a PGP hash but didn’t understand the process and don’t know of a way to test if it works. Would you happen to know how to correctly create a hash value?
There’s no need to make a hash.
If you have a PGP key, then list it and use its hash. If you do not have a PGP key then skip that entry in contact info entirely.
Try gpg --list-keys
Here’s the output:
[root@fedora-39 ~]# gpg --list-keys gpg: directory '/root/.gnupg' created gpg: /root/.gnupg/trustdb.gpg: trustdb created
I have the public PGP file downloaded onto Documents so I tried importing from there but got an error:
[root@fedora-39 ~]# gpg --import /home/user/Documents/publickey.lovespreader444@protonmail.com-7c3a87c8d9e6c94c5a7c29e60fee4035ec52cacb.asc
gpg: can't open '/home/user/Documents/publickey.<emailaddress>-<text>.asc': No such file or directory
gpg: Total number processed: 0
I replaced the email and following portion of the file name for this post.