GnuPG: Difference between revisions

456 bytes added ,  18 September 2020
→‎Troubleshooting: gpg-connect-agent RESET /bye
→‎Configuration: kill any running agents
→‎Troubleshooting: gpg-connect-agent RESET /bye
 
(5 intermediate revisions by the same user not shown)
Line 56: Line 56:
Command> check
Command> check


// change passphrase
$ gpg --edit-key didi
Command> passwd
// save
Command> save


// encrypt [and compress] a document
// encrypt [and compress] a document
Line 82: Line 87:
$ gpg --verify doc.sig doc
$ gpg --verify doc.sig doc
</source>
</source>


== Key management ==
== Key management ==
Line 128: Line 132:
</source>
</source>


= Troubleshooting =


Kill any running agents
Kill any running agents
Line 134: Line 139:
$ gpgconf --kill gpg-agent
$ gpgconf --kill gpg-agent
</source>
</source>
Reset agent as a user
<source lang="console">
$ gpg-connect-agent RESET /bye
</source>
If you get ''Inappropriate ioctl for device'' you can add '''export GPG_TTY=$(tty)''' to either ~/.bashrc or ~/.profile (or ~/.bash_profile).


= Keyservers =
= Keyservers =
Line 146: Line 161:


* http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/
* http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/
* [https://eligible.com/blog/commit-signing-with-git-hub-keybase-and-gpg/ Commit Signing With Git, Hub, Keybase, and GPG]