Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_key: Improve key loading by label. After importing a certificate… #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justremotephone
Copy link

… 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.

… 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.
@@ -166,7 +166,7 @@ static int pkcs11_next_cert(PKCS11_CTX *ctx, PKCS11_TOKEN *token,
CK_OBJECT_HANDLE obj;
CK_ULONG count;
int rv;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants