Error "Need the secret key to do this" Encountered During adduid command in UNIX

Jim Ernst jernst at
Mon Feb 10 14:44:50 CET 2014

Hi - I just used --export for it.

After looking at it further, I did wonder whether or not it was a result of exporting the file off of one UNIX machine and importing it onto another (again, using just --export). Would you know if movement like that between machines should create an issue? I was figuring the key could be exported from one UNIX machine and imported to another, but I did not know if the machine ID was part of the key.

Jim E.

-----Original Message-----
From: MFPA [mailto:2014-667rhzu3dc-lists-groups at]
Sent: Monday, February 10, 2014 7:24 AM
To: Jim Ernst on GnuPG-Users
Cc: Jim Ernst
Subject: Re: Error "Need the secret key to do this" Encountered During adduid command in UNIX

Hash: SHA512


On Thursday 6 February 2014 at 8:37:53 PM, in <mid:82c7c50932ef43c78e10e855391fca03 at>,
Jim Ernst wrote:

> Hello All -

> I am trying to add a second uid to a key via adduid. I have exported
> the key from my production UNIX box to and exported it to a test UNIX
> box. When I try to use adduid I get the following:

Command>> adduid
> Need the secret key to do this.


> Has anyone experienced this and if so what is the solution? I am
> logged into the UNIX under the same ID that created the key.  Any help
> is greatly appreciated.

Did you export the secret key using "--export-secret-keys" or just the public key using "-export?"

- --
Best regards

MFPA                    mailto:2014-667rhzu3dc-lists-groups at

The best way to destroy your enemy is to make him your friend.


CONFIDENTIALITY NOTICE: The information in this e-mail message and any attachments may contain privileged, confidential or proprietary information, including confidential health information, protected by applicable Federal or state laws. Such information is intended only for the recipient named above. If you are not the intended recipient, please notify the sender immediately, and take notice that any use, disclosure or distribution of such information is prohibited by law.

More information about the Gnupg-users mailing list