I'm using Delphi with SecureBlackBox to sign documents. I need to know if current PIN lifetime (PIN previous inputed) of selected certificate is valid, to know if the PIN UI will be shown. Is that possible, using winapi or SecureBlackBox directly?
Solved my problem passing CRYPT_SILENT flag to CryptAcquireContext function in secure black box code. This way the code will fail if pin has expired, instead of showing the pin UI.
-
Hi @Rodrigo Caetano, thanks for sharing the root cause and the solution, you could also feel free to accept your own answer. – Drake Wu - MSFT Dec 10 '20 at 8:33
-