smartcard

Digital signature from electronic smartcard in Chrome

余生颓废 提交于 2019-11-29 02:47:07
问题 For an electronic prescription system, that runs on the browser and that requieres personal signature by the professional, we are using a Java applet to sign the XML request, that then is sended to a WS, using a smartcard. But since version 42, Chrome is disabling by default NPAPI support, and in future versions next to September 2015 it will be completely disabled and then applets won't be usable at all. At Chrome NPAPI deprecation page points to WebCrypto and TLS as alternatives. But it

Bad Padding Exception - RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING in pkcs11

霸气de小男生 提交于 2019-11-29 02:45:11
My application is accessing e-Token for decrypting the response coming from the server The session key from the server is encrypted using :- RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING I am using SunPKCS11 Provider for implementing the access to crypto token. Whenever i try to decrypt this using the above mechanishm i.e. with RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING i am getting :- **javax.crypto.BadPaddingException: doFinal() failed at sun.security.pkcs11.P11RSACipher.implDoFinal(P11RSACipher.java:328) at sun.security.pkcs11.P11RSACipher.engineDoFinal(P11RSACipher.java:353) at javax.crypto.Cipher

javax.smartcardio - javadocs

大兔子大兔子 提交于 2019-11-28 22:08:27
I'm studying the javax.smartcardio classes. I'm using eclipse 3.6 and I have JDK 6 SE. I can use the statement import javax.smartcardio.* or any of its individual classes, as long as I change preferences to warn or ignore forbidden references. I don't see any mention of javax.smartcardio in the standard documentation at Java SE 6 and no javadoc help pops up in eclipse. I have found docs here . Is there a way of linking Eclipse to the javadocs for smartcardio? I've asked Sun back in the day multiple times to include the javax.smartcardio in the documentation, but they have refused all the times

issue with get processing options

孤街醉人 提交于 2019-11-28 12:48:31
I have selected application ( A0000000032010 ) on Visa contactless card and when I issue GPO command: "80A8000002830000" I get error: 67 00 Does anyone have idea what can be causing this? Michael Roland You receive that error code because you are sending an invalid GET PROCESSING OPTIONS command. In response to the application selection, you received the following PDOL: 9F38 0E (Processing Options Data Object List (PDOL)) 9F6604 (Terminal Transaction Qualifiers (TTQ)) 9F0206 (Amount, Authorized (Numeric)) 9F3704 (Unpredictable Number) 5F2A02 (Transaction Currency Code) 9A03 (Transaction Date)

Use READ BINARY to read more than 256 bytes

℡╲_俬逩灬. 提交于 2019-11-28 11:15:13
I am trying to read a smartcard( German Gesundheitskarte ) using javax.smartcardio In the definition of the EF "PD" its length is specified as 850 bytes. The content should be a gzipped ISO5589-15 encoded XML string as specified here As CommandAPDU I send 00 B0 00 00 00 to get the first 256 bytes. After sending 00 B0 00 FF 00 I get the next 256 bytes. But how do I get the rest? How will I know when the binary data ends? German Specification Part 1 | German Specification Part 2 pb2q READ BINARY APDUs allow 2 bytes for the file offset, coded in P1 and P2, and use Le for the length, for READ

I can't find APDU commands for SLE5542

感情迁移 提交于 2019-11-28 11:02:56
问题 I can't find anywhere a valid APDU list for SLE5542 smartcard. Actually I found this: http://www.acs.com.hk/drivers/eng/PMA_ACR38x(CCID)_v6.01.pdf but it's not working. I've searched also for SLE4442 which is compatible, I've searched some standardization, but nothing. (I found some comprehensive datasheets about SLE4442 but they don't contain APDU data) I'm novice in this domain, so maybe I'm missing something. In the end I want to be able to read/write some data to the card. (including

working with IC card reader and SLE5528 smart card

十年热恋 提交于 2019-11-28 10:32:14
问题 Am having an IC contact card reader and SLE5528 smart cards.Am wondering how to get started working with these items really. The reader is being read and i see no effect when i insert the smart card . i also installed the smart card shell of opensmart from http://www.openscdp.org/ but i can't get to read any card reader with it.Am wondering whether it has compatibility issues. Please i know i may have asked the question inappropriately, but am kindly asking anyone there to help me out on this

0x6f00 error casting Javacard Shareable Interface

烂漫一生 提交于 2019-11-28 08:56:24
问题 I tried to use SIO (Shareable Interface Objects) for two different packages in order to update the business logic of my applet in future. I'm using eclipse, and I start two different JavaCard applications, ClientSIOApplet and ServerSIOApplet. There is a package named appClient in ClientSIOApplet and one named appServer in ServerSIOApplet. Also, ClientApplet.java and ServerAppBankInterface.java are classes in appClient and ServerAppBankInterface.java and ServerApplet.java are in appServer. You

find certificate on smartcard currently on reader

ぐ巨炮叔叔 提交于 2019-11-28 08:26:58
I am using Visual Studio 2013 (C#) to digitally sign document using certificate from smartcard. I cannot identify certificate currently inserted in the card reader :( Windows copy certificates from all card inserted in the reader and keep it in the store. I want to use just card cuurently in the reader. code I using is public static byte[] Sign(Stream inData, string certSubject) { // Access Personal (MY) certificate store of current user X509Store my = new X509Store(StoreName.My, StoreLocation.CurrentUser); my.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly); // Find the certificate we'll

Communicate with smartcard reader through Android USB host

谁说胖子不能爱 提交于 2019-11-28 07:51:49
I'm trying to send a command to a smart card. I use a Gemalto IDBridge CT30 (PC TWIN reader) and a IDBridge K30 connected to the Android device over USB. I try to send a SELECT APDU command over USB: boolean claim = openedConnection.claimInterface(usbInterface, true); byte[] data = new byte[]{ (byte) 0x00, (byte) 0xA4, (byte) 0x04, (byte) 0x0C, (byte) 0x07, (byte) 0xA0, (byte) 0x00, (byte) 0x00, (byte) 0x01, (byte) 0x18, (byte) 0x45, (byte) 0x4E}; After that I receive an answer: final int dataTransferred = this.openedConnection.bulkTransfer(endPointOut, data, data.length, TIMEOUT_MS); if(!