Skip to content

Instantly share code, notes, and snippets.

@tosbourn
Created October 10, 2018 14:02
Show Gist options
  • Save tosbourn/e901dc96c9e8b225fd5dfdd84837bfd5 to your computer and use it in GitHub Desktop.
Save tosbourn/e901dc96c9e8b225fd5dfdd84837bfd5 to your computer and use it in GitHub Desktop.
How to generate a VAS base64 key
openssl ecparam -name prime256v1 -genkey -noout -out nfcKey.pem
openssl ec -in nfcKey.pem -pubout -out nfcPubkey.pem -conv_form compressed
cat nfcPubkey.pem
Top and tail the resulting key and join any broken lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment