You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A C_Sign issued in the same session in which the private/public key pair is generated fails with CKR_USER_NOT_LOGGED_IN.
The issue is caused by a SELECT(AID) invoked before using the private key. The SELECT resets the authentication state. The SELECT(AID) is issued by the code, because the private key has an associated path, automatically set in the PKCS#15 layer for newly generated keys.
For keys already existing on the device, the path is not set during initialization, so that the additional SELECT(AID) is suppressed.
The text was updated successfully, but these errors were encountered:
CardContact
pushed a commit
to CardContact/OpenSC
that referenced
this issue
Mar 2, 2016
A C_Sign issued in the same session in which the private/public key pair is generated fails with CKR_USER_NOT_LOGGED_IN.
The issue is caused by a SELECT(AID) invoked before using the private key. The SELECT resets the authentication state. The SELECT(AID) is issued by the code, because the private key has an associated path, automatically set in the PKCS#15 layer for newly generated keys.
For keys already existing on the device, the path is not set during initialization, so that the additional SELECT(AID) is suppressed.
The text was updated successfully, but these errors were encountered: