• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2201
  • Last Modified:

GPG - Decryption failed : secret key not available

I have a public key that I installed on the key ring.
Trying to decrypt a file and get the following
Decryption failed : secret key not available

What am I missing?  How do I get the secret key. I have no secret keys

gpg --list-secet-keys

thanks inadvance
1 Solution
Dave HoweSoftware and Hardware EngineerCommented:
You cannot decrypt an encrypted message/file using a public key.

in gpg, you use the private key to decrypt or sign.
you use the public key to encrypt or verify signatures.

so, with the public key only, you could encrypt more files, but not decrypt any of them.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now