GPGexit code > 0
gpg: decryption failed: No secret key
$gpg: decryption failed: No secret key
Analysis
You are trying to decrypt a message, but you don't possess the private key corresponding to the public key that encrypted it.
Common Triggers
- ●Private key not imported.
- ●Trying to decrypt a message intended for someone else.
Debug Checks
- $List secret keys:
gpg --list-secret-keys.
Resolution
1
Import the secret key.
2
Ask the sender to encrypt it for your public key.
Metadata
- Tool
- GPG
- Severity
- High
- Tags
- #gpg#security#encryption