Sven Löschner <sven <at> mediatix.de> writes:
>
> Hello,
>
> I am new to OpenSC and I have a big problem: I can't
access the smartcard. I
> am trying the Smart-Card-Bundle on Windows XP, but I
alway get the
> following:
>
> C:ProgrammeSmart card bundle>pkcs15-init
--create-pkcs15
> --use-default-transport-keys --profile pkcs15+onepin
> Instruction code not supported or invalid
> iso7816.c:458:iso7816_select_file: returning with:
Unsupported INS byte in
> APDU
> card.c:563:sc_select_file: returning with: Unsupported
INS byte in APDU
> Unsupported card driver default
> Couldn't bind to the card: Not supported
>
> C:ProgrammeSmart card bundle>opensc-tool
--list-readers
> Readers known about:
> Nr. Driver Name
> 0 pcsc KOBIL Systems KAAN Advanced 1
>
> C:ProgrammeSmart card bundle>opensc-tool --reader
0 --atr
> Instruction code not supported or invalid
> iso7816.c:458:iso7816_select_file: returning with:
Unsupported INS byte in
> APDU
> card.c:563:sc_select_file: returning with: Unsupported
INS byte in APDU
> 3b:95:15:40:ff:68:01:02:45:47
> Instruction code not supported or invalid
> iso7816.c:458:iso7816_select_file: returning with:
Unsupported INS byte in
> APDU
> card.c:563:sc_select_file: returning with: Unsupported
INS byte in APDU
>
> C:ProgrammeSmart card bundle>opensc-tool
--list-drivers
> Configured card drivers:
> cardos Siemens CardOS
> cardos Siemens CardOS
> flex Schlumberger Multiflex/Cryptoflex
> cyberflex Schlumberger Cyberflex
> gpk Gemplus GPK
> miocos MioCOS 1.1
> mcrd MICARDO 2.1
> setcos Setec cards
> starcos STARCOS SPK 2.3
> tcos TCOS 2.0
> openpgp OpenPGP card
> jcop JCOP cards with BlueZ PKCS#15 applet
> oberthur Oberthur AuthentIC.v2/CosmopolIC.v4
> belpic Belpic cards
> atrust-acos A-Trust ACOS cards
> emv EMV compatible cards
> incrypto34 Incard Incripto34
> piv PIV-II for multiple cards
> default Default driver for unknown cards
>
> C:ProgrammeSmart card bundle>opensc-tool -R
> Configured reader drivers:
> pcsc PC/SC reader
> ctapi CT-API module
>
> Thank you in advance for every hint.
>
> Sven
>
>
It seems that opensc-tool isn't able to autodetect your
smart card.
Look for the file opensc.conf in your
"C:ProgrammeSmart card bundle"
directory, open it with an editor and search for the lines:
# Default: autodetect
#
# force_card_driver = customcos;
Add the next line just under the above lines. Don't forget
to replace "starcos"
with your card driver:
force_card_driver = starcos;
If you want to try different card drivers without modifiying
the opensc.conf
file, you could use the command:
opensc-tool -c starcos -r 0 -nvv
This will force opensc-tool to use the starcos card driver,
reader 0 and list
the card in your reader with verbose messages.
Thierry
_______________________________________________
opensc-user mailing list
opensc-user lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user |