Note: You do not need the "key handle" value at all as you can perform operations using returned key object.
Good luck!
0
JHZK99
On
You put me on the right track. I ended up using c_find_objects_ex to grab the key handle and used slice to chop off the trailing "L" in the output. Thanks!
You can use pkcs11.Session.get_key() to get unique object in HSM by label.
An example to get an AES key with label "Label":
Use pkcs11.Session.get_objects() for more complex searches.
Note: You do not need the "key handle" value at all as you can perform operations using returned
key
object.Good luck!