#!/bin/bash cd "$(dirname "$(readlink -e "$0")")" echo y \ | ykpersonalize -2 -ochal-resp -ochal-hmac -ohmac-lt64 -oserial-api-visible 2>&1 \ | sed 's@^key: h:@@;t;d' \ > .shared_secret