From fe494a632240754bd98192032cccd1de961f5b61 Mon Sep 17 00:00:00 2001 From: Eugene K Date: Tue, 23 May 2023 09:18:10 -0400 Subject: [PATCH 1/2] check if key supports certificate store --- library/ziti_enroll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/ziti_enroll.c b/library/ziti_enroll.c index cc0ac03a..cd1d0913 100644 --- a/library/ziti_enroll.c +++ b/library/ziti_enroll.c @@ -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"); } From f72b6f555aa61d890f9685d7912dd66a2f3ccc4b Mon Sep 17 00:00:00 2001 From: Eugene K Date: Tue, 23 May 2023 09:56:41 -0400 Subject: [PATCH 2/2] update tlsuv@v0.23.5 --- deps/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index b1eeccde..48ad4818 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -8,7 +8,7 @@ else () FetchContent_Declare(tlsuv GIT_REPOSITORY https://github.com/openziti/tlsuv.git - GIT_TAG v0.23.4 + GIT_TAG v0.23.5 ) FetchContent_MakeAvailable(tlsuv)