
NET PKCS#11 transforms the hash into an ASCII string. NET PKCS#11 library requests the 12-byte Card Serial Number (CSN) fromĠx57 0x01 0x13 0x51 0x26 0xC7 0xD6 0x10 0x29 0x27 0xFF 0xFF These 16 characters are the 8 MSB (leftmost bytes) of the hash result. As the C_GetTokenInfo string is only 16 bytes it can display 16 characters of the hash result only in ASCII format. NET PKCS#11 library performs an MD5 hash of the CSN provided by the However, this route comes with a WARNING since it returns a hash of the serial number and NOT the actual serial number. If you want to use the PKCS11 library, it can be done as follows. Write-Host "Smartcard Serial Number: $SmartCardSN" $SmartCardSN = ::ToString($SmartCard.GetSerialNumber()) $SmartCard = New-Object ($Reader.SelectedReader) NET SDK Add-Type -Path "C:\Program Files (x86)\Gemalto\NET Smartcard Framework SDK\v2.2.180\Libraries\On Card\Framework Libraries\v2.1.213.9175\SmartCard.dll"Īdd-Type -Path "C:\Program Files (x86)\Gemalto\NET Smartcard Framework SDK\v2.2.180\bin\SmartCard_stub.dll"Īdd-Type -Path "C:\Program Files (x86)\Gemalto\NET Smartcard Framework SDK\v2.2.180\bin\" NET cards which are being replaced by the IDPrime MD product line. Note: this is specifically for Gemalto IDPrime. and Better refer to Global Platform documentation and ISO 7816 standard ( ). just check for what tag your card support. Sorry i cant provide exact bytes and it might vary in your case.


IC Fabrication Date : 2 Bytes (Y DDD) date in that year For Gemalto card, I hope it will work.ĭata what i got from my gemalto card by querying CPLC data is:

Find what specification your card support. I believe This is a Global Platform specific tag.

For example, JCOP cards have this at GET DATA or GETCPLCDATA at 0x9F7F tag or 0x0101 tag. Some specific types of cards have Card Production Life Cycle (CPLC) data. You have to send APDU to smart card asking for card product life cycle data i.e (CPLC data).
