Hi, after setting up .gnupg/gpg.conf with: default-recipient [email protected] 2453E9849BB91599B128FFE7AC95367953582A3C hidden-encrypt-to [email protected] 2453E9849BB91599B128FFE7AC95367953582A3C
I tried to encrypt a mail in gnus. and it gave me the backtrace:Debugger entered--Lisp error: (epg-error "Encrypt failed" "Unusable public key: [email protected] 2453E9849BB91599B128FFE7AC95367953582A3C; Exit") signal(epg-error ("Encrypt failed" "Unusable public key: [email protected] 2453E9849BB91599B128FFE7AC95367953582A3C; Exit")) mml-secure-epg-encrypt(OpenPGP (part (encrypt . "pgpmime") (tag-location . 249) (contents . "\ntest\n")) nil) mml2015-epg-encrypt((part (encrypt . "pgpmime") (tag-location . 249) (contents . "\ntest\n")) nil) mml2015-encrypt((part (encrypt . "pgpmime") (tag-location . 249) (contents . "\ntest\n")) nil) mml-pgpmime-encrypt-buffer((part (encrypt . "pgpmime") (tag-location . 249) (contents . "\ntest\n"))) mml-generate-mime-1((part (encrypt . "pgpmime") (tag-location . 249) (contents . "\ntest\n")))
mml-generate-mime(nil nil) message-encode-message-body() message-send-mail(nil) message-send-via-mail(nil) message-send(nil) message-send-and-exit(nil) funcall-interactively(message-send-and-exit nil) command-execute(message-send-and-exit) Earlier it was possible to encrypt a mail in gnus. I guess I have to add something in my gpg.conf file thanks Gottfried Am 17.03.26 um 13:03 schrieb gfp:
Additional information: in Emacs, opening the pgp option in /tools/Encryption Decryption/... it gives me the key: u AC95367953582A3C gfp (2026) <[email protected]> but there is also no "0x" in front of a key. Gottfried Am 17.03.26 um 11:58 schrieb gfp:Am 17.03.26 um 10:51 schrieb Adam Sjøgren:gfp writes:I don´t know who is Bob?It's an English idiom, which roughly means "and your problem is solved": https://en.wikipedia.org/wiki/Bob%27s_your_uncleI found in "man gpg" those two options: "default-recipient" and "hidden-encrypt-to"Super! Did you find out what value to set them to?noYou set the to the id if your key - so if you run: gpg --list-keys [email protected] the id is the string that starts "0x" in the first line - perhaps it shows 0xAC95367953582A3C ?if I run: gpg --list-keys [email protected] it gives me: no id with the start of "0x" but: pub ed25519 2026-03-03 [SC] 2453E9849BB...... long number uid [ ultimativ ] gfp (2026) <[email protected]> sub cv25519 2026-03-03 [E] So how can I find the ID?You set those two parameters in the configuration file for gpg, which is ~/.gnupg/gpg.confI don´t have a gpg.conf file in my ~/.gnupg/Then you create it, and put in lines with the two options and the 0x... value after each. Best regards, Adamthanks Gottfried
-- Mit freundlichen Grüßen G. Preihs
OpenPGP_0xAC95367953582A3C.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
