"gpg: decryption failed: No secret key" after export-import to another host

anon85786376 anon85786376 at protonmail.com
Mon Jun 7 02:53:00 CEST 2021


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, June 6, 2021 2:24 PM, sergio via Gnupg-users <gnupg-users at gnupg.org> wrote:

> I found the sequence to reproduce my problem:
>
> $ rm -rf .gnupg
> $ gpg --gen-key --batch <<EOF
> %echo Generating a 25519 key
> Key-Type: eddsa
> Key-Curve: Ed25519
> Key-Usage: cert
> Subkey-Type: ecdh
> Subkey-Curve: Ed25519

The problem is the subkey curve being ed25519. It will not import correctly. For an encryption subkey you must use "Subkey-Curve: cv25519".

See: https://dev.gnupg.org/T5401



More information about the Gnupg-users mailing list