Can I Import an existing OpenPGP key into Ubuntu for use as my Personal key?

    louis@WinNyx:~$ gpg --send-keys --keyserver keyserver.ubuntu.com 1FDBB6475ED8B730113953BE5CD637DC9222E537
    gpg: sending key 5CD637DC9222E537 to hkp://keyserver.ubuntu.com

    louis@WinNyx:~$ gpg -k
    /home/louis/.gnupg/pubring.kbx
        ------------------------------
        pub   ed25519 2020-08-30 [SC]
              DACC660A9C2DB3A19CC5B2512BA791DE0CA69C40
        uid           [ unknown] [email protected] <[email protected]>
        sub   cv25519 2020-08-30 [E]
        
        pub   ed25519 2021-03-14 [SC]
              1FDBB6475ED8B730113953BE5CD637DC9222E537
        uid           [ultimate] [email protected] <[email protected]>
        uid           [ultimate] Louis A. Waweru <[email protected]>
        sub   cv25519 2021-03-14 [E]

    louis@WinNyx:~$ gpg --search-keys --keyserver hkps://keyserver.ubuntu.com 1FDBB6475ED8B730113953BE5CD637DC9222E537
    gpg: data source: https://162.213.33.8:443
    (1)     [email protected] <[email protected]>
            Louis A. Waweru <[email protected]>
              263 bit EDDSA key 5CD637DC9222E537, created: 2021-03-14
    Keys 1-1 of 1 for "1FDBB6475ED8B730113953BE5CD637DC9222E537".  Enter number(s), N)ext, or Q)uit > 1
gpg: key 5CD637DC9222E537: "[email protected] <[email protected]>" 2 new signatures
gpg: Total number processed: 1
gpg:         new signatures: 2

Yet on launchpad, after several days:

launchpad could not import key


Solution 1:

Launchpad does not yet support Ed25519 OpenPGP keys, due to problems with upgrading to GnuPG v2 that we need to sort out at some point. See bug 1827369. In the meantime, you'll have to use a key type that's supported by GnuPG v1.

Solution 2:

Please don't post screenshots of text. Copy/paste the text directly.

Anyway, the problem is your key needs to be in the Ubuntu keyserver for Launchpad to import it. You uploaded the key to hkps://keys.openpgp.org, which is not part of the SKS pool so the key will never propagate to the Ubuntu keyserver.

You should instead upload the key directly to hkps://keyserver.ubuntu.com then wait ten minutes before trying to import it to Launchpad.

EDIT

"Personal keys" are those for which you have the private key. These will also be displayed when you enter the command gpg -K.