-
I am trying to generate keypair (RSA or EC), but I keep getting CKR_ARGUMENTS_BAD (0x00000007). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I guess this error (by runing over code) that there is an argument that is null. As far as I can check the pubkey template it is not as I get different result if I play with modulus_bits (The card does not do 1024 bits) |
Beta Was this translation helpful? Give feedback.
-
I assume you are using OpenSC as the pkcs11 module. Get an OpenSC debug log to see where it is failing. |
Beta Was this translation helpful? Give feedback.
CKA_ID is byte array i.e. binary.
I don 't know what language you are writing your template in but Template looks like: