Summary: | pgpkeys: Unbreak PGP keyring | ||
---|---|---|---|
Product: | Documentation | Reporter: | Markus Stoff <markus> |
Component: | Books & Articles | Assignee: | Danilo G. Baio <dbaio> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | dbaio, lwhsu |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://docs.freebsd.org/pgpkeys/pgpkeys.txt | ||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257830 |
Description
Markus Stoff
2021-08-12 09:05:18 UTC
Which gpg version are you using? I'm testing it with 2.3.1 and I can import this file file. And this is what `gpg --no-version --armor --export` outputs. (In reply to Li-Wen Hsu from comment #1) I'm using gnupg1-1.4.23_2. gnupg1 is correct in throwing an error. There must be a blank line before the ASCII-Armored data: https://datatracker.ietf.org/doc/html/rfc4880#section-6.2 Concatenating the following data creates ASCII Armor: - An Armor Header Line, appropriate for the type of data - Armor Headers ==> - A blank (zero-length, or containing only whitespace) line - The ASCII-Armored data - An Armor Checksum - The Armor Tail, which depends on the Armor Header Line A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/doc/commit/?id=08abb348951bdb2c35170b75e078c14a36cc0e82 commit 08abb348951bdb2c35170b75e078c14a36cc0e82 Author: Danilo G. Baio <dbaio@FreeBSD.org> AuthorDate: 2021-08-14 15:10:34 +0000 Commit: Danilo G. Baio <dbaio@FreeBSD.org> CommitDate: 2021-08-14 15:52:11 +0000 pgpkeys: Unbreak PGP keyring gpg: invalid armor header: mQINBF+5ojQBEADSqQjD4h1lOwAGgmz4dK0Zf4JkoJCpQ7jw2B5jigNySdKf1rQN\n ^^ Using GnuPG 1 A blank line before the key body is needed. PR: 257830 [1] PR: 257783 [2] Reported by: Dave Evans <dave.evans55@googlemail.com> [1] Reported by: Markus Stoff <markus@stoffdv.at> [2] documentation/static/pgpkeys/joerg.key | 1 + 1 file changed, 1 insertion(+) Committed, thanks! |