find certificate on smartcard currently on reader

I am afraid it is not possible to detect if the card containing specific X509Certificate2 object is present in the reader by using standard .NET APIs. The best thing (very hackish) I could come up with is this: public static X509Certificate2 GetDefaultCertificateStoredOnTheCard() { // Acquire public key stored in the default container of the currently … Read more

Access the SIM Card with an Android Application?

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) of … Read more

Architectures to access Smart Card from a generic browser? Or: How to bridge the gap from browser to PC/SC stack?

The fact is that browsers can’t talk to (cryptographic) smart cards for other purposes than establishing SSL. You shall need additional code, executed by the browser, to access smart cards. There are tens of custom and proprietary plugins (using all three options you mentioned) for various purposes (signing being the most popular, I guess) built … Read more