How to deal with the error Gnupg: gpg: no default secret key: No secret key gpg: [stdin]: wipe failure: no secret key?

I get an error message:

gpg: no default secret key: No secret key gpg: [stdin]: clearsign failed: No secret key 

My secret keys are available for GPG.

+4
source share
2 answers

Here is the answer: I am using the latest version of gnupg, but I need to use the interface version 0.44 of gnupg. I reinstalled gnupg.

Then no compilation errors were found. I can sign my message. but cannot send request. The problem is that I did not install the LWP :: Protocol :: Https module, which is used by "Useragent" to send the request. (I found out that I did not install the module, while maintaining simple print instructions that showed a problem that LWP :: Protocol :: Https was not found). So I installed the LWP :: Protocol :: Https module through cpan. And I am ready to go. Finally, everything is installed :-)

0
source

This may be the difference between gpg1 and gpg2. Secret keys are stored in different ways. Perhaps both of you.

Try

 which gpg gpg2 

If you have both, run:

 gpg2 --list-secret gpg --list-secret 

Perhaps you can say that one works, the other does not.

0
source

Source: https://habr.com/ru/post/1415553/


All Articles