Skip to content

PGP key export instructions incorrect #693

@davidsauerwein

Description

@davidsauerwein

I had some issues exporting and importing my PGP key generated via gpg

The instructions say to use

gpg --export -a KEY_ID! > subkey.pub
gpg --export-secrect-subkeys -a KEY_ID! > subkey

Importing that key would lead to errors saying that the subkey is either invalid or expired.

I had to remove the exclamation mark behind the KEY_ID to make things work

gpg --export -a KEY_ID > subkey.pub
gpg --export-secrect-subkeys -a KEY_ID > subkey
$ gpg --versoin
gpg (GnuPG) 2.4.7
libgcrypt 1.11.0
Copyright (C) 2024 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/david/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

My app version is 0.18.0 (5)

I generated the key using gpg --full-generate. Both ECC keys with ed25519 and RSA4096 have the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions