Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does the error 'Error: bad PGP armor found; expected a newline' mean? #198

Open
speckles opened this issue Apr 8, 2020 · 1 comment

Comments

@speckles
Copy link

speckles commented Apr 8, 2020

The source of this error may be from missing the new line under your key header.

IE, this is wrong and will cause the error

-----BEGIN PGP PUBLIC KEY BLOCK-----
blahblahblah..

This what it should look like

-----BEGIN PGP PUBLIC KEY BLOCK-----

blahblahblah..

This may seem obvious to anyone familiar with pgp, but I spent far too long trying to figure this out. So I am posting this to give the next person who runs into this dumb error the search result I wish I'd had.

@jaredjensen
Copy link

Even more specifically, if there's metadata, the empty line needs to be after that, e.g.

-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.1.13
Comment: https://keybase.io/crypto

blahblahblah..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants