On Sun, 11 May 2025 12:08, Nick said:

> Is it because --list-keys shows 0 for signed keys?

You are using "gpg --list-keys" (aka "gpg -k") this lists OpenPGP keys
and not S/MIME (i.e. X.509) keys.  For that you need to run "gpgsm
--list-keys" (or "gpgsm -k").  However, if you want to use a key for
signing you need the private (secret) key and thus it is better to use

  gpgsm --list-secret-keys

or shorter

  gpgsm -K

(note the capital 'K').  This lists only keys/certificates for which you
have the private (secret) key.

> gpgsm: can't sign using '[email protected] <mailto:[email protected]>': No
> public key

The error message might be confusing, as it should show "no secret key"
but in your case it seems that you don't vene have the public key for
"[email protected]".

BTW, having mailto: as part of the mail address in angle brackets is not
the best idea: For gpg any many other tools this looks like the real
mail address is "mailto:[email protected]"; and not "[email protected]".



Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein

Attachment: openpgp-digital-signature.asc
Description: PGP signature

_______________________________________________
Gnupg-users mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to