How to deal with Gnupg error: gpg: no default secret key: No secret key gpg: [stdin]: clearsign failed: No secret key?
I am getting an error: gpg: no default secret key: No secret key gpg: [stdin]: clearsign failed: No secret key My secret keys are available to GPG. It might be difference between gpg1 and gpg2. The secret keys are stored in different ways. You may have both of them. Try which gpg gpg2 If you do have both, run: gpg2 --list-secret gpg --list-secret You maybe able to tell that one works, another does not. Here's the answer: I am using latest gnupg version , but I have to use 0.44 gnupg interface version. I have reinstalled the gnupg. Then no compilation errors were found. I am able to sign my