Skip to content

Instantly share code, notes, and snippets.

@taxilian
Created January 4, 2021 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taxilian/ee872740ad19984ac74560d23820093e to your computer and use it in GitHub Desktop.
Save taxilian/ee872740ad19984ac74560d23820093e to your computer and use it in GitHub Desktop.
macOS set up yubico-piv-tool

Why?

Homebrew build doesn't work -- dunno why. I should figure out why and fix it then submit a PR, but I'm lazy.

Prep

brew install cmake libtool pkg-config check gengetopt help2man pcsc-lite openssl

Check out

git clone https://github.com/Yubico/yubico-piv-tool
cd yubico-piv-tool

Build

mkdir build && cd build
PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig" cmake ..
make
make install

Then to use it with SSH:

ssh-add -s /usr/local/lib/libykcs11.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment