OpenGPG key directions : gpg --export -a "Key-ID" yields nothing

Asked by John Donnelly on 2016-12-02


 I am attempting to add my OpenGPG key to LP. I have created a key + fingerprint using " gpg --gen-key " successfully .

 The directions at : state to upload the key info via web :

To upload the key using a web browser:

1. Export your key by issuing this command: gpg --export -a "Key-ID" > mykey.asc

2. Copy the content of the file mykey.asc.

3. Open in a browser window.

4. Paste the copied content in the box under the label Submitting a new OpenPGP Key.

   Step 1 doesn't produce any output :

   gpg --export -a "Key-ID"

     gpg: WARNING: nothing exported

    If I exclude the "Key-ID" I get a full text output :

gpg --export -a
Version: GnuPG v1



   Is this block of text I am suppose to enter at ?

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Solved by:
Manfred Hampl
Last query:
Last reply:
Manfred Hampl (m-hampl) said : #1

Why are you creating a new question document and do not contain in your other one about the same topic

Manfred Hampl (m-hampl) said : #2

oops, typo error and/or wrong autocorrect, "... do not continue ..."

John Donnelly (jpdonnelly) said : #3

while this is related to a previous question ; it is not the same issue ;

Best Manfred Hampl (m-hampl) said : #4

Both questions are about correct usage of GPG keys and the commands related to that.
For me that is the same topic.

John Donnelly (jpdonnelly) said : #5

Thank you for your help !

 I was able to add a GPG key to my LP profile .

  IMO - Overall the procedure is very confusing . This particular step is incorrect :


    gpg --export -a "Key-ID"

 It should follow the example in the preceding directions :

 export GPGKEY=123456

 gpg --export -a $GPGKEY

2. The method of receiving a email , and decoding the secret message ( in my case using the cli : gpg -d msg )

    is scatter-brained with yet another indirection to yet another url how to do it .

Hopefully I won't have to do this again .

John Donnelly (jpdonnelly) said : #6

Thanks Manfred Hampl, that solved my question.

Manfred Hampl (m-hampl) said : #7

If you have ideas how to improve the contents of then you are welcome to modify that page (see for instructions for contributing).