Skip to content

Instantly share code, notes, and snippets.

@ld86
Created February 13, 2014 05:50
Show Gist options
  • Save ld86/8970402 to your computer and use it in GitHub Desktop.
Save ld86/8970402 to your computer and use it in GitHub Desktop.
Store your id_rsa on EToken
openssl rsa -in id_rsa -out pub.der -outform DER -pubout
openssl rsa -in id_rsa -out priv.der -outform DER
pkcs11-tool --module /usr/local/lib/libeToken.dylib -w pub.der --type pubkey --label "label" --id 01
pkcs11-tool --module /usr/local/lib/libeToken.dylib -w priv.der --type privkey --label "label" --id 01
ssh-keygen -D /usr/local/lib/libeToken.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment