Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Use gpgconf to kill gpg-agent
Browse files Browse the repository at this point in the history
Also kill it before changing GNUPGHOME
  • Loading branch information
andsens committed Aug 12, 2017
1 parent 5a24abf commit 25c8404
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ $ ./generate-master.sh 'John Doe' '[email protected]'
Generating master key and encryption subkey for "John Doe" <[email protected]>
Key ID is E22FE7692F473FA12F2BAB164046979C50C10E97

# Make sure there is no gpg-agent running
$ gpgconf --kill gpg-agent

# Change the GnuPG home dir, so that you can interact with the keys you just created
$ export GNUPGHOME=$PWD/secure/gnupg-home

# Make sure gpg-agent uses the new home dir
$ killall gpg-agent

# Add a photo to your key, copy the encryption key to your smartcard
# and sign the authentication & signing keys with your master key
$ gpg2 --edit-key E22FE7692F473FA12F2BAB164046979C50C10E97
Expand Down

0 comments on commit 25c8404

Please sign in to comment.