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

fix: enroll with pkcs11 key #699

Merged
merged 1 commit into from
Aug 4, 2023
Merged

fix: enroll with pkcs11 key #699

merged 1 commit into from
Aug 4, 2023

Conversation

ekoby
Copy link
Member

@ekoby ekoby commented Aug 4, 2023

[fixes #591]

@ekoby ekoby requested a review from a team as a code owner August 4, 2023 13:06
@@ -2097,6 +2097,10 @@ static int parse_enroll_opts(int argc, char *argv[]) {
break;
case 'k':
enroll_opts.enroll_key = realpath(optarg, NULL);
if (enroll_opts.enroll_key == NULL) {
// may be pkcs11 key ref
enroll_opts.enroll_key = optarg;
Copy link
Member

Choose a reason for hiding this comment

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

is there any value in calling realpath here now?

Copy link
Member Author

Choose a reason for hiding this comment

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

we want to convert possible relative path to an absolute one

@ekoby ekoby merged commit 50c2b8b into main Aug 4, 2023
13 checks passed
@ekoby ekoby deleted the fix-allow-pkcs11-keys branch August 4, 2023 13:22
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.

enroll ignores pkcs11 key source
2 participants