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

Several token in Ubuntu server #2157

Closed
hurtado-santiago opened this issue Nov 18, 2020 · 3 comments
Closed

Several token in Ubuntu server #2157

hurtado-santiago opened this issue Nov 18, 2020 · 3 comments
Labels

Comments

@hurtado-santiago
Copy link

Problem Description

I have to sign/verify with several token in ubuntu server but OpenSC only recognize 8 of them.

Proposed Resolution

In some part of the system variables may be one that can be changed

Steps to reproduce

I use epass2003 fetitian devices.
Physically i know that there are more than 8 devices connected so i try the command:
pkcs11-tool --module XXXXX --slot 9 -O

Logs

error: PKCS11 function C_OpenSession failed: rv = CKR_SLOT_ID_INVALID (0x3)
Aborting.

@dengert
Copy link
Member

dengert commented Nov 19, 2020

the opensc.conf has a pkcs11 block where you can set max_virtual_slots and slots_per_card.
See man opensc.conf something like this will allow for 16 readers. Note Windows 10 only allows 10 readers.

app opensc-pkcs11 {
     pkcs11 {
         max_virtual_slots = 64;
         slots_per_card = 4;
     }
}

@frankmorgner
Copy link
Member

Linux (PCSC-Lite), similarly, has a hard coded limit of 16 readers LudovicRousseau/PCSC#13

@hurtado-santiago
Copy link
Author

hurtado-santiago commented Nov 19, 2020

Thanks!

@dengert it worked very well.
@frankmorgner that info clarified the restriction.

In my Ubuntu server 20.04 I edited /etc/opensc/opensc.conf, added the pkcs11 block and worked fine!

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

No branches or pull requests

3 participants