Failed to connect to card: Card is invalid or cannot be handled

morphin <[email protected]>
Newsgroups gmane.comp.encryption.opensc.devel
Message-ID <[email protected]>
Hello. 

I have Omnikey 6121 SC with "Akis" sim card in it. Sim= "akiskart.com.tr" 
Akis has a java program "Akia" and with the program i can read the card. But
Akia hasn't API or DOC. 

I wanna read the sim card using linux from terminal without Akia. I just
need to catch "username" information.
I installed pkcs11-tool and pkcs15-tool. I think 15 is the correct one for
my SC but both can't see sim card.
I used latest Driver for 6121: ifdokccid_linux_i686-v4.2.8

And I'm using Ubuntu 16.04

What am I missing? 
You can find more informations below. Thank you for your help. 

root@xx:/home/xx# opensc-tool --atr 
Using reader with a card: OMNIKEY AG 6121 USB mobile 00 00 
3b:9f:96:81:31:fe:45:80:67:55:45:4b:41:45:12:92:31:80:73:b3:a1:80:6a 
__________________________________________ 

root@xx:/home/xx# opensc-tool -f 
Using reader with a card: OMNIKEY AG 6121 USB mobile 00 00 
3f00 [MasterFile      ] type: DF, size: 0 
select[N/A] lock[N/A] delete[N/A] create[N/A] rehab[N/A] inval[N/A]
list[N/A] 

sc_list_files() failed: Not supported 
__________________________________________ 

root@xx:/home/xx# pkcs15-tool -L 
Using reader with a card: OMNIKEY AG 6121 USB mobile 00 00 
Failed to connect to card: Card is invalid or cannot be handled 

root@xx:/home/xx# ppkcs15-tool -k 
Using reader with a card: OMNIKEY AG 6121 USB mobile 00 00 
Failed to connect to card: Card is invalid or cannot be handled 
__________________________________________ 

root@xx:/home/xx# pkcs11-tool -L 
Available slots: 
Slot 0 (0xffffffffffffffff): Virtual hotplug slot 
  (empty) 
Slot 1 (0x1): OMNIKEY AG 6121 USB mobile 00 00 
  (empty) 

root@xx:/home/xx# pkcs11-tool -I 
Cryptoki version 2.20 
Manufacturer     OpenSC (www.opensc-project.org) 
Library          Smart card PKCS#11 API (ver 0.0) 
No slot with a token was found. 




--
View this message in context: http://opensc.1086184.n5.nabble.com/Failed-to-connect-to-card-Card-is-invalid-or-cannot-be-handled-tp15847.html
Sent from the Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.