Gpg

From stacky wiki
Revision as of 00:49, 21 November 2018 by Anton (talk | contribs) (Created page with "== Setup == Generate a key gpg2 --full-gen-key === Yubikey setup === Following https://blog.programster.org/yubikey-link-with-gpg sudo apt install pcscd scdaemon gnupg2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Setup

Generate a key

gpg2 --full-gen-key

Yubikey setup

Following https://blog.programster.org/yubikey-link-with-gpg

sudo apt install pcscd scdaemon gnupg2 pcsc-tools

After that, plug in the yubikey and do

gpg2 --card-edit
gpg/card> admin  # enables admin commands
gpg/card> passwd  # then set Admin PIN

I seem to have broken something :-/. gpg/card> reset seems to fix it.


Trying yubico-piv-tool

sudo apt install check libpcsclite-dev
./configure
make
sudo make install

but then I have to go into yubico-piv-tool-1.6.2/lib/.libs to run since it didn't copy the .so files.


Look at https://github.com/drduh/YubiKey-Guide