-
Notifications
You must be signed in to change notification settings - Fork 221
P11tool Reference
Bryan Hunt edited this page Nov 27, 2018
·
1 revision
To use p11tool it has to be installed:
# Debian like systems
$ sudo apt-get install gnutls-bin
# RPM based systems
$ yum install gnutls-utils
Note: If not using p11-kit-proxy then the provider has to be specified in p11tool calls:
$ p11tool --provider /usr/lib/libcryptoauth.so
-
With p11-kit set up
$ p11tool --export-pubkey "pkcs11:token=0123EE;object=device;type=private" warning: --login was not specified and it may be required for this operation. warning: no --outfile was specified and the public key will be printed on screen. -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9wzUq1EUAoNrG01rXYjNd35mxKuA Ojw/klIrNEBciSLLOTLjs/gvFS7N8AFXDK18vpxxu6ykzF2LRd7RY8yEFw== -----END PUBLIC KEY-----
-
Without p11-kit
$ p11tool --export-pubkey --provider /usr/lib/libcryptoauth.so "pkcs11:token=0123EE;object=device;type=private" warning: --login was not specified and it may be required for this operation. warning: no --outfile was specified and the public key will be printed on screen. -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9wzUq1EUAoNrG01rXYjNd35mxKuA Ojw/klIrNEBciSLLOTLjs/gvFS7N8AFXDK18vpxxu6ykzF2LRd7RY8yEFw== -----END PUBLIC KEY-----