Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rodrickbrown/b793ad461f874d78dff1bce641180aac to your computer and use it in GitHub Desktop.

Select an option

Save rodrickbrown/b793ad461f874d78dff1bce641180aac to your computer and use it in GitHub Desktop.
mkdir ~/.simple-tpm-pk11
stpm-keygen -p -o ~/.simple-tpm-pk11/$USER.key
echo "key $USER.key" > ~/.simple-tpm-pk11/config
ssh-keygen -D /lib64/libsimple-tpm-pk11.so > "~/.ssh/$USER.pub"
ssh-keygen -D /usr/lib/x86_64-linux-gnu/libsimple-tpm-pk11.so > "~/.ssh/$USER.pub" (ubuntu)
cat <<EOF > ~/.ssh/config
Host *
PKCS11Provider libsimple-tpm-pk11.so
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment