smartcard

Access the SIM Card with an Android Application?

痞子三分冷 提交于 2019-12-28 02:39:29
问题 I wonder if it's possible to access to the SIM card with an Android Application 回答1: You can get the IMEI like this (but is it what you want ?), just an exemple : mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String imei = mTelephonyMgr.getDeviceId(); Likewise, you have String getSimCountryIso(): Returns the ISO country code equivalent for the SIM provider's country code. String getSimOperator(): Returns the MCC+MNC (mobile country code + mobile network code)

Error “Malformed content.” in Signature Verification

爷,独闯天下 提交于 2019-12-25 18:26:21
问题 I want to verify my signature . my signature is a byte array. I use spongy castle I get error "org.spongycastle.cms.CMSException: Malformed content." this is my code: String base64 = Base64.toBase64String(signedchallenge); CMSSignedData cms = new CMSSignedData(Base64.decode(base64)); Store store = cms.getCertificates(); SignerInformationStore signers = cms.getSignerInfos(); Collection c = signers.getSigners(); I get error in line " CMSSignedData cms = new CMSSignedData(Base64.decode(base64));

SCardTransmit() returns empty response buffer

一笑奈何 提交于 2019-12-25 17:17:11
问题 Using the framework described here, I'm trying to read from a smart card. I have built an apdu command. The command structure appears to be correct because it works in java. When I call the SCardTransmit() function, the command gets executed, but it returns an empty response buffer of length Le+2 bytes. The first two bytes holding SW1 and SW2 are 6118. I believe this means that there are more bytes to be read into the buffer. However when I change the buffer size, the response buffer size is

login with smart card on web site

☆樱花仙子☆ 提交于 2019-12-25 09:39:53
问题 I need help with sign in with a smart card on google chrome. First: When I go to the page that requires the certificate, this window appears where you can choose the certificate: select certificate image. Is there any way this window can be edited so that I can see whose certificate is, and not just from whom it was issued, under the subject and the issuer is the same (from whom it was issued). I need to see here name of user. Second: I have problem with loading certificates from smart cards

login with smart card on web site

 ̄綄美尐妖づ 提交于 2019-12-25 09:39:07
问题 I need help with sign in with a smart card on google chrome. First: When I go to the page that requires the certificate, this window appears where you can choose the certificate: select certificate image. Is there any way this window can be edited so that I can see whose certificate is, and not just from whom it was issued, under the subject and the issuer is the same (from whom it was issued). I need to see here name of user. Second: I have problem with loading certificates from smart cards

Signing document with qualified certificate - smart card

白昼怎懂夜的黑 提交于 2019-12-25 08:04:09
问题 Code below works correctly for 2 different cryptografic smart-card libraries (certum cryptoCertum3PKCS.dll and cencert enigmap11.dll ), but it's crashing for kir(szafir) lib - ccpkip11.dll, after providing pin, which is for 100% correct Anyone has an idea what I'm doing wrong? KeyingDataProvider kp = new PKCS11KeyStoreKeyingDataProvider( settings.getDriverPath(), settings.getProviderName(), settings.getSlot(), new CertificateSelector(), new KeyStorePasswordProvider(), null, false); Document

ISO 15693: OMNIKEY Contactless reader, occasional read failure

流过昼夜 提交于 2019-12-25 06:45:49
问题 I am investigating an intermittent issue where reading eight blocks of data from a TI Tag HF-I RFID card from an HID OMNIKEY contactless reader. The ReadEightBlocks routine below is called 8 times from a for loop that bumps startBlockNum up by 8 each time. Reading all 64 data blocks on the card with 8 reads of 8 blocks. ReadEightBlocks calls SmartCardTransmit() that in turn calls SCardTransmit() . However, reading the second 8 blocks occasionally fails with an error code of 0x6A 0x82 . Can

PKCS11 driver for CAC card/ card reader

馋奶兔 提交于 2019-12-25 03:15:29
问题 I have a doubt regarding how to get the pkcs11 driver for interacting with CAC cards .As far as I understood the card reader should provide the driver. I just checked the SCR331 card reader abd they do not seem to have a pkcs11 driver. However the US DoD contracted ActivClient seems to have one which works with the SCR331. Also I got to know that OpenSC has a windows pkcs11 driver opensc-pkcs11.dll. Will this work with the SCR331 card reader. Also I found from the Putty-CAC project that

How can I edit the content of my smart card?

梦想与她 提交于 2019-12-25 01:45:37
问题 Can you tell me please how I can edit the content of my smart card? How should I use APDU commands in order to edit the content? Lets say I have something like this on a smart card: 00 00 05 00 00 00 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 And I want it to be : 00 00 06 00 00 00 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 How can I do that? Is it possible? If yes, how? I have ACR-122 NFC READER/writer 回答1: You're talking about simple

Smart Card relogin failed with message “validation of viewstate MAC failed” After executed “ClearAuthenticationCache”

巧了我就是萌 提交于 2019-12-24 20:13:21
问题 In my ASP.NET web application, I use smart card to login. After logged out, I want to make the IIS prompt pin if login again. So the following command is run - document.execCommand('ClearAuthenticationCache'); It does prompt the selection of certificate. However after pick up the correct certificate, "Validation of viewstate MAC failed" error is thrown. Machine key has been set in web.config. I test it in a single server. Can this be fixed? Is there another way to force relogin without