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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions programs/ziti-edge-tunnel/ziti-edge-tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
break;
case 'c':
enroll_opts.enroll_cert = realpath(optarg, NULL);
Expand Down
Loading