PeculiarVentures / pkcs11js

A Node.js implementation of the PKCS#11 2.40 interface
MIT License
111 stars 33 forks source link

Can I use this lib to get private key and Certificate from HSM ? #61

Closed Arsira-star closed 3 years ago

Arsira-star commented 4 years ago

I have Lunaclient that install in my server and it register to connet to HSM. In HSM has Certificate PrivateKey and PublicKey How can I get one of that to make sign

rmhrisk commented 4 years ago

Yes this library provides a binding for PKCS11 that you can use with the Luna client.

Using this library means you intend to use PKCS11 directly and therefor the path forward is for you to find a sample in the Luna documentation that describes the call pattern you want in another language and recreate it using pkcs11js.

We’re happy to help with library specific questions.

You may want to look at the higher level library Graphene, this is a simpler API to use in many cases.

microshine commented 3 years ago

I'd like to suggest you use other our modules