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

pkcs11-tool.exe Problem with --reader 1 switch #685

Closed
scottthomas007 opened this issue Feb 21, 2016 · 2 comments
Closed

pkcs11-tool.exe Problem with --reader 1 switch #685

scottthomas007 opened this issue Feb 21, 2016 · 2 comments

Comments

@scottthomas007
Copy link

I generate key with the following pkcs11-tool.exe command
pkcs11-tool -l --pin 12345678 --keypairgen --key-type rsa:1024 --id 10 —label "KEY"
But this command works for only 1 smart card reader.
If i attach 2 smart card readers then adding --reader 1 switch generates error that --reader is an unrecognized option.
What can be the alternate switch to use 2nd smart card reader?

@dengert
Copy link
Member

dengert commented Feb 21, 2016

pkcs11 has the concept of a slots, not readers.
Multiple slots can be used with the same token.

pkcs11-tool -L
Available slots:
Slot 0 (0xffffffffffffffff): Virtual hotplug slot
(empty)
Slot 1 (0x1): SCM Microsystems Inc. SCR 355 [CCID Interface] 00 00
token label : PIV_II (PIV Card Holder pin)
token manufacturer : piv_II
token model : PKCS#15 emulated
token flags : rng, login required, PIN initialized, token initialized
hardware version : 0.0
firmware version : 0.0
serial num : b75b00144f1f5ef4
Slot 2 (0x5): ACS ACR122U PICC Interface 01 00
token label : PIV_II (PIV Card Holder pin)
token manufacturer : piv_II
token model : PKCS#15 emulated
token flags : rng, login required, PIN initialized, token initialized
hardware version : 0.0
firmware version : 0.0
serial num : c9d45c86501843e2

On 2/21/2016 3:49 AM, scottthomas007 wrote:

I generate key with the following pkcs11-tool.exe command
pkcs11-tool -l --pin 12345678 --keypairgen --key-type rsa:1024 --id 10 —label "KEY"
But this command works for only 1 smart card reader.
If i attach 2 smart card readers then adding --reader 1 switch generates error that --reader is an unrecognized option.
What can be the alternate switch to use 2nd smart card reader?


Reply to this email directly or view it on GitHub #685.

Douglas E. Engert [email protected]

@scottthomas007
Copy link
Author

Thanks, It worked.

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