Import private key from PEM file?

Werner Koch wk at
Mon Jun 18 11:04:56 CEST 2012

On Mon, 18 Jun 2012 10:08, quannguyen at said:

> Is it possible to import pairs of certificate/private key from p12 file
> using gpgsm?

Sure, you may import pkcs#12 files.  The pinentry will ask you for the
transport passphrases and for the new passphrase under which gpg-agent
will store the key.  The code even tries several passphrase encodings to
work around common encoding problems.

  gpgsm -v --import foo.p12

is all you need.  Watch out for the pinentry and any error messages you
may see.  In case of problems, it is useful to enable gpg-agent



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list