Gpg

From stacky wiki
Jump to: navigation, search

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