Skip to content

openpgp: invalid data: user ID signature with wrong type #6

Description

@DamienCassou

Whatever I try I always get:

$ go run main.go 
2024/03/27 22:09:05 Enter path to private PGP key (default: ./priv.asc):
./damien.asc
2024/03/27 22:09:09 openpgp: invalid data: user ID signature with wrong type

This is with the latest version of golang installed on a fresh debian system in a VM.

I generated the ./damien.asc file with:

$ gpg --export-secret-keys --armor F72C652AE7564ECC 

F72C652AE7564ECC is my main key id (not a subkey).

The ./damien.asc file is 81 lines long (compared to the 26 lines of the test-key.asc in the repository). Is the size normal? The file looks like:

-----BEGIN PGP PRIVATE KEY BLOCK-----
...
-----END PGP PRIVATE KEY BLOCK-----

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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