new user, can't add gnupg key

Asked by owen beresford

greetings,
First, thank you for your operating system, i like this much more than RHEL.

I am currently doing a very good impression of a clueless idiot,
i don't think I have overlooked a step in the docs, but this is likely to be the failure.

On my local machine, I have a GnuPG setup, and I can `gpg --fingerprint` and it reports good values as a plain user
I have used the sync option several times, with the default URL of hkp://keyserver.ubuntu.com:11371 this morning before 10:00 BST

I have an old Ubuntu one account that I never logged into, i don't know how many years old.
base URL: https://launchpad.net/ This morning I reset the password and logged in (works).
I click "Register a project ", (works)
I have left enough time for data to transfer between your depts
It asks for the "GPG" to authenticate commits, so I click through to the add my new GPG key
It asks for the finger print, I copy the above terminal output (10x 4chars blocks and a space), being careful for whites-space on the ends
it errors say "unrecognised fingerprint" -- I can re-execute to get full error text if that helps
My locale is en_UK, and no '£' char are used for this operation.

errors should be tied to the account that logged this question, and its occurring today.

Possible causes:
* I have scrolled past a step that was needed
* I have an old account and it needs a DB migration

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Ines Almeida
Solved:
Last query:
Last reply:
Revision history for this message
owen beresford (oab1) said (last edit ):
#1

possible cause 3: am I confusing "gpg" and "openPGP" as the same encryption process?

also, i have no idea if this affects anything, I recently upgraded to Ubuntu 24. For low level things like Openssl, I am entirely using unmodified "stock parts". I don't think I installed I installed Boost here. I have the default window manager and its settings, aside from darkmode.

Revision history for this message
Best Ines Almeida (ines-almeida) said :
#2

Hi Owen,
Note that syncing the keys to hkp://keyserver.ubuntu.com can sometime take quite a while, so you should try this again today and let us know if the problem persists so that we can help.

Afaik, there shouldn't be any migration necessary and the steps you mention here seem alright.

In case the problem persists, what guide have you followed?
You can check out the documentation here: https://help.launchpad.net/YourAccount/ImportingYourPGPKey
That page has both details about how to import it into Launchpad, and the general process to generate and publish a key.

Revision history for this message
owen beresford (oab1) said (last edit ):
#3

thanks for the update, I just ran this again, no change to outcome
.
/action trying the new docs now.
Note, the version of "Passwords and Encryption Keys" that I have ins't exactly as documented, but I can find my way round.
The screenshots look like a different window manager is being used.

************************** Better question: *********************************
$ gpg --fingerprint
~/.gnupg/pubring.kbx
--------------------------------
pub dsa2048 2024-06-10 [SC]
      489E 50FC EF1F 4C9C 30BE 74DE 1701 8CDC 6BB9 B376
uid [ultimate] Owen Beresford <cough cough>
sub elg2048 2024-06-10 [E]

is this the wrong crypto algo, as the docs use a different format output.
I made that key via the GUI, with default settings.

i have been using elliptic curves for SSL for some time

Revision history for this message
owen beresford (oab1) said :
#4

UPDATE: thanks ines-almeida for the more detailed guide.
I think the GUI version of OpenPG is doing different settings or something and doesn't work with your platform.

I have solved the problem with the CLI tools that Ubuntu also ships with.

Revision history for this message
owen beresford (oab1) said :
#5

Thanks Ines Almeida, that solved my question.

Revision history for this message
Ines Almeida (ines-almeida) said :
#6

Nicely spotted, indeed we don't support all encryption algorithms.

If you visit https://launchpad.net/~/+editpgpkeys is lists the ones supported:
> At present, RSA, DSA, ECDSA, ECDH, and EdDSA keys are supported.

Glad your got it to work!