Skip to content

alaric/nitrokey-hsm-cryptoki-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Usage of Nitrokey HSM with Cryptoki Rust Crate

This repository provides a simple example of using the cryptoki crate to extract the public key for an encryption, then decrypt using the Nitrokey HSM.

This assumes you've initialized the Nitrokey HSM already, and have keys generated according to the intstructions. Once that's done you should be able to run in somewhat similarly to, with parameters altered as necessary:

cargo run -- --module /usr/lib/opensc-pkcs11.so --pin 123456 --slot 0 --id 10

I also documented a couple of the quirks on this blog post.

About

Example of using the cryptoki crate with a Nitrokey HSM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages