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

Can this Watchdata token be supported? #43

Closed
mndar opened this issue Jan 31, 2018 · 4 comments

Comments

@mndar
Copy link

commented Jan 31, 2018

There are these Trustkey tokens in the Indian market which seem to be using the Watchdata drivers (pcscd_wd). They distribute a Java application and a pkcs11wrapper with the tokens. There's also a binary called P11ModelTool. I am unaware of its purpose.

However, I would like to use them with opensc and gnutls (p11tool to load certificates).
I added the USB ID (163c:0418) to Info.plist and the Init fails. I'm attaching the output of pcscsd, pcsc_scan and lsusb -v.

Please have a look.

lsusb.txt
pcscd.txt
pcsc_scan.txt

@LudovicRousseau

This comment has been minimized.

Copy link
Owner

commented Jan 31, 2018

@mndar

This comment has been minimized.

Copy link
Author

commented Jan 31, 2018

Attached output.txt
The link to the manufacturer's website is http://trustkeytoken.co.in/ Takes a long time to load.
Here is the link to the product on Amazon.in https://www.amazon.in/Trustkey-USB-Pack-of-5/dp/B01N4I2OSB/ref=sr_1_1?ie=UTF8&qid=1517392483&sr=8-1&keywords=trustkey

output.txt

@mndar

This comment has been minimized.

Copy link
Author

commented Jan 31, 2018

I installed ccid-1.4.28 and opensc gives this output

$ opensc-tool -l
Detected readers (pcsc)
Nr. Card Features Name
0 Yes TrustKey [WDIND USB CCID Key] 00 00

$ pkcs11-tool -L
Available slots:
Slot 0 (0xffffffffffffffff): Virtual hotplug slot
(empty)
Slot 1 (0x1): TrustKey [WDIND USB CCID Key] 00 00
(empty)

$ opensc-tool -n
Using reader with a card: TrustKey [WDIND USB CCID Key] 00 00
Unsupported card

Does this mean that pcsc-lite supports the token and support needs to be added in OpenSC ?

@LudovicRousseau

This comment has been minimized.

Copy link
Owner

commented Jan 31, 2018

The driver available at http://trustkeytoken.co.in/ is my CCID driver. I was not able to find the source code (as requested by GNU LGPL v2.1) so I can't tell if they made modifications or not.

I added your device in the "Should work but untested by me" list at https://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x163C0x0418

It looks like the device works fine at the PC/SC level. Maybe OpenSC has no support for the application inside the token. I can't help for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.