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

Primary PGP key wasn't found #20

Closed
lmquang opened this issue Dec 9, 2018 · 2 comments
Closed

Primary PGP key wasn't found #20

lmquang opened this issue Dec 9, 2018 · 2 comments

Comments

@lmquang
Copy link

lmquang commented Dec 9, 2018

Hi,

I'm trying to create a secret on my Mac but i always get this error even though i've created my GPG key:

Primary PGP key wasn't found

Thanks.

@shyiko
Copy link
Owner

shyiko commented Dec 18, 2018

Make sure gpg --list-secret-key contains key with E (encrypt) & S (sign) capabilities:

$ gpg --list-secret-key
/Users/shyiko/.gnupg/pubring.kbx
--------------------------------
sec>  rsa4096 2012-02-22 [SC]
      160A7A9CF46221A56B06AD64461A804F2609FD89
uid           [ultimate] Sponge Bob <sponge.bob@gmail.com>
ssb>  rsa4096 2012-02-22 [E]
ssb>  rsa4096 2012-02-22 [A]

To verify that everything is properly set up try echo "text" > test && gpg -ab test (it should just work).

Another option is to pass key fingerprint explicitly, e.g.
kubesec encrypt --key=pgp:6206C32E111611688694CF5530BDA87E3E71C268 secret.yml.

@shyiko shyiko closed this as completed Dec 18, 2018
@itsvikasgupta
Copy link

I was getting the same error. I installed GPGSuite from gpgtools.org. On launching GPGSuite, it created a keypair for me and I stopped getting

Primary PGP key wasn't found

after that.

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

3 participants