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

Asked by John Donnelly

Hi

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

 The directions at : https://help.ubuntu.com/community/GnuPrivacyGuardHowto 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 http://keyserver.ubuntu.com/ 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
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQINBFhAkE0BEADGqO4d5QnJVI2BuxTr5/kPPTedffXxpjFhfAQ05P77oGwIQxa1

----

   Is this block of text I am suppose to enter at http://keyserver.ubuntu.com/ ?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
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 https://answers.launchpad.net/launchpad/+question/404564

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

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

Revision history for this message
John Donnelly (jpdonnelly) said :
#3

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

Revision history for this message
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.

Revision history for this message
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 :

1.

    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 .

Revision history for this message
John Donnelly (jpdonnelly) said :
#6

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

If you have ideas how to improve the contents of https://help.ubuntu.com/community/GnuPrivacyGuardHowto then you are welcome to modify that page (see https://help.ubuntu.com/community/WikiGuide for instructions for contributing).