Need to query HSM (in Python) using known values HSM "slot #", "key label" to obtain (unknown value) "key handle".
Any suggestions?
Need to query HSM (in Python) using known values HSM "slot #", "key label" to obtain (unknown value) "key handle".
Any suggestions?
Copyright © 2021 Jogjafile Inc.
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
keyobject.Good luck!