Skip to content

Commit

Permalink
check if key supports certificate store
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed May 23, 2023
1 parent 3d8836b commit fe494a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/ziti_enroll.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ static void enroll_cb(ziti_enrollment_resp *er, const ziti_error *err, void *enr

tls_cert c = NULL;
if (enroll_req->ecfg->tls->api->load_cert(&c, er->cert, strlen(er->cert)) == 0 &&
enroll_req->ecfg->pk->store_certificate != NULL &&
enroll_req->ecfg->pk->store_certificate(enroll_req->ecfg->pk, c) == 0) {
ZITI_LOG(INFO, "stored certificate to PKCS#11 token");
}
Expand Down

0 comments on commit fe494a6

Please sign in to comment.