I have a setup where two separate processes each have a certificate/key pair installed on a YubiKey being accessed through the PKCS#11 interface. After some time, when signing data one of the processes will start to fail with CKR_GENERAL_ERROR. This error occurs during the calls to either C_Sign or C_Login (as user type CKU_CONTEXT_SPECIFIC). When this error starts happening the YubiKey continues to return errors for these functions until the token is removed and reinserted, and the failing process is restarted.
The returned error does not give any indication of the root cause or what is needed in order to fix the problem. Any help resolving this issue is appreciated.
|