Page 2 of 2

Re: RSA 2048

Posted: Tue Apr 18, 2017 5:30 am
by Ibragim
Thank you a lot!
Again OpenSC)) Smartcards, we've bought are not supported by OpenSC. Which type of Smartcard do you use? I've tried this applet, but i've got problems with openSC

Re: RSA 2048

Posted: Tue Apr 18, 2017 9:43 pm
by UNKNwYSHSA
What's the problem?
1 Can you load and install the applet to your card?
2 Can you initialize the applet with opensc?
3 Can you apply a certificate to your card?
4 Other question(s)?

I am using java card J3D081 and JC30.

Re: RSA 2048

Posted: Wed Apr 19, 2017 12:08 am
by tay00000
Ibragim wrote:Thank you a lot!
Again OpenSC)) Smartcards, we've bought are not supported by OpenSC. Which type of Smartcard do you use? I've tried this applet, but i've got problems with openSC


Please produce the problems in a documented, step-by-step fashion for easy assistance. Also, the model of card reader and cards used are very valuable information.

Re: RSA 2048

Posted: Wed Apr 19, 2017 4:47 am
by Ibragim
I have ACR 1281 1s dual reader, and ACOSJ Combi cards.
1. I can load and install an applet.
2. No, i can't initialize the applet with openSC => 3. I can't apply a certificate to my card

Problem is here:
During pkcs15-init -r 0 -C i got:
"New User PIN.
Please enter User PIN: Please type again to verify: Unblock Code for New User PIN (Optional - press return for no PIN).
Please enter User unblocking PIN (PUK): Please type again to verify: Failed to create PKCS #15 meta structure: Transmit failed"

I've chosen right reader index and installed Applet on my smartcard.

Re: RSA 2048

Posted: Wed Apr 19, 2017 6:22 am
by UNKNwYSHSA
I'll find out the reason, wait for me.

Re: RSA 2048

Posted: Thu Apr 20, 2017 5:00 am
by Ibragim
Thanks for help

Re: RSA 2048

Posted: Thu Apr 20, 2017 5:54 am
by UNKNwYSHSA

Re: RSA 2048

Posted: Sat Apr 22, 2017 1:44 am
by Ibragim
I have some problems with OpenSC. When i'm trying to work with my SmartCard via OpenSC applications i've got an error "Unsupported card".
In forums i've found an answer that i need smartcards driver on Windows, but manufacturer of smartcard answered me, that in this model of smartcard there's no need for driver on this model of smartcard. I'm using ACOSJ combi.

Best Regards, Ibragim

Re: RSA 2048

Posted: Sat Apr 22, 2017 8:26 pm
by tay00000
Since you mentioned Windows driver, I assume you are attempting to use it on a Windows environment. By default, Windows and OpenSC supporting the card is two different matters.

The Windows side might be able to use it's native CCID driver to access the card over ISO-7816 for generic smart card functions but when it comes to the OpenSC toolkit, whether the OpenSC toolkit can access the card via protocol specific (GIDS APDUs) is another thing. Another thing is possible hard-coded whitelist of smart cards for accessing the system despite Windows being able to access. There is many possibilities.

One way to work around is to use a smart card explorer to utilize the Windows native CCID system to talk to the card using generic APDUs. One example of a smart card explorer would be the pyApdutool by going to TOOLS link and then on the sidebar click on the pyApdutool link and download the tool and attempt to issue a select ISD domain command. If the pyApdutool works in selecting the card domains, that means the problem lies with the OpenSC implementation. If you want more friendly and colourful GUI for a smart card explorer, you can use the JSmartCardExplorer (https://sourceforge.net/projects/jsmartcard/).

On a personal note, I don't really trust the OpenSC implementations these days as there are much to be desired from the project as I have bummed my toes on it many times. I prefer to write my own implementation from scratch and learnt to read the ISO or standards specs on my own while doing my own implementations :) .

If you are interested in writing your own library to access GIDS cards, you may refer to Microsoft's documentation here (https://msdn.microsoft.com/en-us/librar ... 85%29.aspx).