On Montag, 9. November 2026 19:57:42 Mitteleuropäische Normalzeit Jakob Bohm 
via Gnupg-users wrote:
> Now the question that has hit further work is how to reliably import
> the unprotected decruption key into gpgsm.
> 
> Running gpgsm --import ${newkeyandcert}.p12 creates a state that will
> invoke gnupg-agent and prompt for a password, but refuse to accept
> blank input.
> 
> Running gpgsm --import ${newcert}.pem doesn't import the private key
> at all.
> 
> So what is the proper way to import a key and cert such that it is
> treated as unprotected by private key operations?

Using gpgsm 2.5.24 the following works for me.

$ echo | gpgsm --import --batch --pinentry-mode loopback --passphrase-fd 0 
cert.p12

After the import I could decrypt a message encrypted for this certificate 
without being asked for a password.

Regards,
Ingo

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to