libp11
libp11 copied to clipboard
load_key: Improve key loading by label. After importing a certificate…
… on a SafeNet usb token under Windows the certificate is labeled but the key label is empty.
To solve this problem, the certificate label is used instead of empty key labels to find the key. Verbose output is also updated to show the effective key label and the matching certificate serial number is also written to the trace. So the key can be identified from the log output.