Import private key from PEM file?

Werner Koch wk at
Mon Jun 18 11:31:22 CEST 2012

On Mon, 18 Jun 2012 11:16, quannguyen at said:

> gpgsm: gpgsm: GPG_TTY has not been set - using maybe bogus default

Fix this!  See the manual or the man page.

> `/home/hongquan/.gnupg/private-keys-v1.d/89E5CF0B2581EE779B2CF2D849EE991DEE0E1A17.key' 
> already exists

Well, you already imported the private key.

> gpgsm: total number processed: 4
> gpgsm:              unchanged: 3
> gpgsm:       secret keys read: 1
> gpgsm:  secret keys unchanged: 1

Why do you think you will see a new entry in the secret key listing, if
nothing changed?

> How about importing from PEM file? Is there a command to do that?

gpgsm detects armor or binary itself.  If you want to tell it
explicitly, use one of --assume-{armor,binary,base64}.  It is all in the



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list