0335308D Incorrect key attribute.

Explanation

One or more PKCS #11 attributes or parameters for a key are missing or incorrect for a requested function that is being performed. For example, a signing operation requires that for the key that is being used, the PKCS #11 sign attribute is to be TRUE. Verify that the correct key is being used for the requested function, and that all required attributes are set for that key. If using gsk_make_enveloped_private_key_msg(), ensure that a recipient certificate's RSA public key is valid.

User response

Verify that a certificate's PKCS #11 key attributes are correct for the function that is being performed.