| Crates.io | pkcs11-uri |
| lib.rs | pkcs11-uri |
| version | 0.1.3 |
| created_at | 2021-01-10 15:09:59.336718+00 |
| updated_at | 2022-03-23 12:47:56.428173+00 |
| description | PKCS #11 URI parser |
| homepage | |
| repository | |
| max_upload_size | |
| id | 338768 |
| size | 54,819 |
API docs: https://nickray.github.io/pkcs11-uri/pkcs11_uri/
One way to generate URIs to feed into this library is the p11tool in GnuTLS.
Running p11tool --list-tokens returns the URIs for all available tokens.
Running p11tool --list-all <token URI> then lists all the objects in that token.
For private keys, use GNUTLS_PIN=<pin> p11tool --login --list-all <token URI>.
One way to create keypairs to use is with softhsm-util and pkcs11-tool:
softhsm2-util --init-token --free --label my-ca --pin 1234 --so-pin 1234
pkcs11-tool --module /usr/lib/libsofthsm2.so --token my-ca --login --pin 1234 --keypairgen --label my-signing-key --key-type RSA:2048