public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: deadeyes <gvm999@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] smartcard issues
Date: Sat, 16 Apr 2011 19:33:44 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110416T210629-700@post.gmane.org> (raw)

Hi all,

For logging in to servers we now use smartcards.
For windows this works fine, however for Linux and Mac OS X it doesn't.

The smartcards are from Raaktechnologies.
THis is the output of openct-tool atr:
Detected CCID Compatible
Card present, status changed
ATR: 3b f8 13 00 00 81 31 fe

So it seems that the card is detected.

HOwever when doing:
pkcs15-tool -D
[pkcs15-tool] reader-pcsc.c:896:pcsc_detect_readers: 
SCardListReaders failed: 0x8010002e
[pkcs15-tool] reader-pcsc.c:1015:pcsc_detect_readers: 
returning with: No readers found
Using reader with a card: CCID Compatible
[pkcs15-tool] reader-openct.c:324:openct_reader_transmit: unable to transmit
[pkcs15-tool] apdu.c:394:do_single_transmit: unable to transmit APDU
[pkcs15-tool] reader-openct.c:324:openct_reader_transmit: unable to transmit
[pkcs15-tool] apdu.c:394:do_single_transmit: unable to transmit APDU
[pkcs15-tool] card-default.c:66:autodetect_class: 
APDU transmit failed: Generic reader error
[pkcs15-tool] card-default.c:113:default_init: 
unable to determine the right class byte
[pkcs15-tool] card.c:202:sc_connect_card: driver 'Default driver 
for unknown cards' init() failed: Card is invalid or cannot be handled
[pkcs15-tool] card.c:213:sc_connect_card: 
unable to find driver for inserted card
[pkcs15-tool] card.c:228:sc_connect_card: returning with: 
Card is invalid or cannot be
Failed to connect to card: Card is invalid or cannot be handled

I think that this tool has no driver for reading this card.

They supplied me with a library: libcmP11.so.
I tried adding it to opensc.conf and 
got a message that it was not a valid driver.

Using pkcs11-tool:

pkcs11-tool -I \
--module /home/gvm/smartcard/raaksign-linux-471-x64/libcmP11.so 
           
Cryptoki version 2.11
Manufacturer     charismathics gmbh            
Library          cm PKCS#11 module        (ver 4.8)
No slots.

So it seems that this is a pkcs11 library. 
However I always get no slots and it
isn't usable on any rdesktop connection.

I have following packages and there use flags:
net-misc/rdesktop-1.6.0-r4  alsa ipv6 pcsc-lite rdpusb
dev-libs/openct-0.6.20-r1  Upcsc-lite usb
dev-libs/opensc-0.11.13-r2  openct pcsc-lite readline ssl zlib
sys-apps/pcsc-lite-1.7.2-r1  USE="(-usb)"

ldd of the library shows that all dependencies are met.

I have to say I have no experience using smartcards and 
I am not sure how the different tools interact: 
opensc-tool openct-tool pcscd pkcs11-tool pkcs15-tool,...

In the end what should be possible is login to an rdesktop connection.
On my previous portable I came somewhere 
I actually could type in my pin code 
(on the remote desktop) however after that it failed. 
Now I can't even got it to work to that stage.

The SmartCard reader I have is one that is internally connected through usb: 
Bus 002 Device 005: ID 0a5c:5801 Broadcom Corp. BCM5880 
Secure Applications Processor with fingerprint swipe sensor

All help/troubleshooting tips/... are welcome!
Thanks in advance!





             reply	other threads:[~2011-04-16 19:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-16 19:33 deadeyes [this message]
2011-04-26 14:26 ` [gentoo-user] Re: smartcard issues deadeyes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110416T210629-700@post.gmane.org \
    --to=gvm999@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox