Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use USB token reader on windows #66

Open
sdellava opened this issue May 1, 2021 · 1 comment
Open

How to use USB token reader on windows #66

sdellava opened this issue May 1, 2021 · 1 comment

Comments

@sdellava
Copy link

sdellava commented May 1, 2021

Hi, I'm trying to use this library in a Windows environment using USB smart card reader produced by Advanced Card Systems Ltd, CCID USB smart card reader.

From device manager I can see this information:

Location: Port_#0002.Hub_#0002

How I've to set the config ?

const config = {
library: "............",
name: "CCID USB smart card reader",
slot: 0,
readWrite: true,
pin: "12345"
};

@rmhrisk
Copy link
Contributor

rmhrisk commented May 1, 2021

That looks roughly right but a lot depends on the card middleware, since you have not given us any environmental details or errors I am not sure how to help you.

I recommend getting something working as a baseline, for example SoftHSM, and then trying your specific parameters...

Const { Crypto } = require("node-webcrypto-p11");
const config = {
    library: "/usr/local/lib/softhsm/libsofthsm2.so",
    name: "SoftHSM v2.0",
    slot: 0,
    readWrite: true,
    pin: "12345"
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants