Smart Card Vendors: Please document ATR’s and Driver DLLs

Chilkat auto-recognizes HSM’s (smart cards and USB tokens) by the ATR. A Smart Card Answer to Reset (ATR) is a special sequence of bytes sent by a smart card when it is powered on or reset. It serves as the initial communication between the card and the card reader or terminal. The ATR contains information about the card’s characteristics, including […]

Chilkat Updated to Support AKiS Smart Cards

AKiS is a smart card operating system which can be used in personal identification, digital sign, health care system, smart logon, secure email, etc. It is developed within The National Research Institute Of Electronics And Cryptology (UEKAE), a subsidiary of The Scientific & Technological Research Council of Turkey (TUBITAK). There was a problem relating to e-signature tokens using AKIS cards. […]

Is Smartcard Vendor’s low-level lib (dll or so) Required?

Question:  My question is regarding the SharedLib when initializing pkcs11 module. Is the smartcard vendor’s low-level lib (dll or so) required to be able to communicate with a smartcard or do you have some kind of generic lib or driver to achieve this? Answer:  This is a good question.  On a non-Windows system, Chilkat would need to communicate with the […]

AKD eID Cards of the Republic of Croatia

Chilkat is going to begin posting about the ongoing work with customers involving smart cards and tokens used for signing PDFs and XML invoices, etc. Currently, Chilkat is working with a customer to resolve issues having to do with signing PDFs using AKD eID Card for the Republic of Croatia. This is for PKCS11 (AKD eID Middleware PKCS11). The hope […]

MS CNG NCryptSignHash returns 0x80090020

We’ve seen this error when trying to sign using a smart card: msCngSignWithCert Acquired CNG private key. dwKeySpec: 0xffffffff key is CERT_NCRYPT_KEY_SPEC setSmartCardPin: setting smart card pin… –setSmartCardPin Using PKCS1 padding. msCngSign.NCryptSignHash failed. failed to sign. secStatus: 0x80090020 –msCngSignWithCert The 0x80090020 error is a generic “NTE_FAILED: An internal error occurred”. See https://docs.microsoft.com/en-us/windows/desktop/com/com-error-codes-4 To clarify: Chilkat calls the Microsoft CNG (Cryptographic […]