Created
June 28, 2017 20:23
-
-
Save rodrickbrown/b793ad461f874d78dff1bce641180aac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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