Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickray/pkcs11-uri
PKCS #11 URI parser
https://github.com/nickray/pkcs11-uri
cryptography cryptoki hsm pkcs11 signatures
Last synced: 23 days ago
JSON representation
PKCS #11 URI parser
- Host: GitHub
- URL: https://github.com/nickray/pkcs11-uri
- Owner: nickray
- License: apache-2.0
- Created: 2021-01-08T22:16:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-02T15:15:44.000Z (about 1 year ago)
- Last Synced: 2024-10-04T21:57:58.053Z (about 1 month ago)
- Topics: cryptography, cryptoki, hsm, pkcs11, signatures
- Language: Rust
- Homepage: https://docs.rs/pkcs11-uri/
- Size: 2.99 MB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
API docs:
### Getting started
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 ` then lists all the objects in that token.
For private keys, use `GNUTLS_PIN= p11tool --login --list-all `.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