Skip to content
Snippets Groups Projects
Commit 487e6e4c authored by Etienne Carriere's avatar Etienne Carriere Committed by Jérôme Forissier
Browse files

br-ext: embed opensc for pkcs11-tool


Embed opensc package for pkcs11-tool to play with the PKCS11 TA.

Examples of using pkcs11-tool with PKCS11 TA:

  # Get tokens/slots info
  pkcs11-tool --show-info
  pkcs11-tool --list-token-slots
  pkcs11-tool --list-mechanisms

  # Initialize token and user PIN
  pkcs11-tool --init-token --label test-token --so-pin 1234567890
  pkcs11-tool --label test-token --login --so-pin 1234567890 \
              --init-pin --pin ABCDEFGHIJ

  # Generate a 2048bit RSA key
  pkcs11-tool --token-label test-token --pin ABCDEFGHIJ \
              --keypairgen --key-type RSA:2048 --id 123 --label rsa-test-key

  # List token object
  pkcs11-tool --token-label test-token --list-objects

Co-developed-by: default avatarGábor Székely <szvgabor@gmail.com>
Signed-off-by: default avatarGábor Székely <szvgabor@gmail.com>
Signed-off-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
Acked-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent 5019afe2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment