Re: gpgsm documentation (2nd attempt)

Werner Koch via Gnupg-users <[email protected]>
Newsgroups gmane.comp.encryption.gpg.user
Message-ID <[email protected]>
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

_______________________________________________
Gnupg-users mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-users
openpgp-digital-signature.asc (application/pgp-signature, 284 B)
-----BEGIN PGP SIGNATURE-----

iJ8EARYKAEcWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCaSbQaRsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMSwyLDINHHdrQGdudXBnLm9yZwAKCRAZzByeCFsQeu1UAP9v
hCmCzL1/pjq5vtZIzMjYV8GVpKh8tEPGejIewlj/8QD/bWiy1w7YoQeyp03Ov00o
vnXxhipOaH2ldK6cLPJGLwE=
=vzM5
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.