gpgsm documentation (2nd attempt)

Werner Koch wk at gnupg.org
Wed Nov 26 11:03:21 CET 2025


On Tue, 25 Nov 2025 21:26, Borden said:
> My query may have been unclear in that I couldn't get openssl or its
> relying software to understand gpgsm secret keys.

I guess the problem you encounter could be that OpenSSL and GnuPG have
different formats on how to encode the CRT, which is used to speed up
RSA computation.  However, when exporting in pkcs#12 or pcks#8 format,
gpgsm recomputes the parameters to get them into OpenSSL format.

For details on the difference, see gnupg/sm/import.c:rsa_key_check.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20251126/f2d4950f/attachment-0001.sig>


More information about the Gnupg-users mailing list