How do I import an X.509 Certificate onto an OpenPGP smartcard?

Werner Koch wk at
Tue Feb 15 10:29:10 CET 2011

On Sun, 13 Feb 2011 01:41, kgo at said:

> Firstly, can I actually import a certificate like this onto the card?
> Or do I simply misunderstand the specs?


> Secondly, is there a command somewhere in gpg/gpgsm/gpg* to do this, or
> is it specified and implemented on the OpenPGP card only at this point
> in time?

There are two hidden commands in the --card-edit sub-menu:

  readcert 3 >foo.crt

and obviously:

  writecert 3 <foo.crt



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list