Replies: 1 comment
-
The import part should be resolved in the main tree, what version (or git snapshot) are you using ? However if the key is actually in the pkcs#11 module you should simply use the STORE api and load the key via a pkcs11 URI. If they key is not on the token, why are you trying to import it in the token with EVP_PKEY_fromdata()? That function will only create a session key at best (ephemeral key that goes away as soon as you close the session/application). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my application, I need to create an EVP_PKEY object to be used with EVP_DigestSign.
The private (EC) key itself is stored on the PKCS#11 device.
I tried something in the line of:
When running this, the EVP_PKEY_fromdata() call fails inside p11prov_obj_import_key(),
with "Only public keys are supported".
My questions are:
i.e. which function to modify, etc?
Beta Was this translation helpful? Give feedback.
All reactions