keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.89k stars 1.23k forks source link

ERROR decrypt unable to find a PGP decryption key for this message #24279

Open cageyv opened 4 years ago

cageyv commented 4 years ago

System Info:

5.4.0-40-generic Ubuntu 20.04.1 LTS focal keybase version 5.5.1-20200527202541+39ca0071e5 gpg (GnuPG) 2.2.19 libgcrypt 1.8.5

Application Error:

ERROR decrypt unable to find a PGP decryption key for this message

Additional info:

I add my own PGP key with passphrase with keybase pgp select command I don't get request for type passphrase when I use keybase

How to reproduce:

keybase pgp list
Keybase Key ID:  010196
PGP Fingerprint: 857209
PGP Identities:
   Vladimir Samoylov (cageyv) <cageyv.....@gmail.com>
keybase pgp encrypt -m "foobar" > testmessage.txt
cat testmessage.txt
-----BEGIN PGP MESSAGE-----
Comment: https://keybase.io/download
Version: Keybase Go 5.5.1 (linux)

wcFMA4vYUBIL+GyiARAAXPdge8CeXlhjMne32C8SteJuLz/A4rzajo7hXipE7nIa
BVI+s7tmZCRDU9lTkQutH7FJ1cwI60m6Ig3cBTRtDxKDX/W7ZU0OLD35bBIB0+Wj
kzj3HMqHNfWzx+hiLWtQNW7U61XZry8CP4WdWNyPGWnz0uHcHnJZ2di1TMJxgq2e
HD//w6Y5mwWFslA6vAVvvNtZyWFYkJ7G+yoNRSnyMZxjWOcwb8rg3HsfCYW4nLDG
ET5/zRcVVsekhGmwd5jsGBxRMzPqCwDR3YlDAnzzf15JbpaqDiQ7b1XcQacdLB2b
WBGnxIYF09PI/Ef6thsQINuCiJHPb7NxDvV0JuWmGN6Va0QhdH+lwHIMNU1XMQdW
hvlk539Y4ee+MGtNqnSt5RGOS0HdpkZvA4zNaMzxMTFZOIWz5YTRT9xWLRQtuCON
Bdxn9+qPUxyPtw2qp6rfAtFHKdzZLMMpLvJ3i9J8A/0+z3KOlNikIZ1+UDLI7Ta1
3BrAvFHuPMiFKbDmP9wZ+5RPTdlmcaW68m/PQjr9E0fw/OyTMFY5OydzoSPdTmEf
9luseUa8cCLvGFs9i/StY+NqglnvYttmwczj8dW0JTNGrOYglNfDtNVt4yHj9S8Q
VCTM26bCblkPnq7xQncvVFUUVTKiSnIuDemgNp9XpJWmEDLPz3ePwAQdj+LWMa7S
4AHkTqKTa//UOUj8VkFMPTifJOEYZeAa4O7hZZvgFuIELlNc4F/iMs5oE+Al4VsS
4O3kC9J0syzdPvKib7fSN1wgEOJksiiX4WMtAA==
=Isrr
-----END PGP MESSAGE-----
gpg2 --decrypt testmessage.txt
"Entering passphrase..."
gpg: encrypted with 4096-bit RSA key, ID 8BD85012F86CA2, created 2020-02-02
      "Vladimir Samoylov (cageyv) <cageyv....@gmail.com>"
foobar% 
gpg --decrypt testmessage.txt
"Entering passphrase..."
gpg: encrypted with 4096-bit RSA key, ID 8BD85012F86CA2, created 2020-02-02
      "Vladimir Samoylov (cageyv) <cageyv....@gmail.com>"
foobar% 
keybase pgp decrypt -i testmessage.txt
ERROR decrypt error: unable to find a PGP decryption key for this message
sankarpa commented 3 years ago

Any help on this. I am facing a similar issue

NamelessHH commented 3 years ago

Same here

deybhayden commented 2 years ago

A year passes - Did anyone sort this out? I have this issue as well.

deybhayden commented 2 years ago

This comment worked for me (as long as you are comfortable storing your private key in keybase): https://github.com/keybase/client/pull/17307#issuecomment-558860752

cageyv commented 2 years ago

@deybhayden I moved to another system now and can't help to reproduce this anymore :(

laurentiuspurba commented 8 months ago

This comment worked for me (as long as you are comfortable storing your private key in keybase): #17307 (comment)

Doesnt work for me. It prompts to enter passphrase to export the OpenPGP secret key: ..... I tried all passphrases that I have but no luck. Why this is so difficult?

Can we reset all of this? If someone forget their password, how to recover from this in keybase?