From 61f768d88b23143de5abe035ffab63108cc635e7 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Tue, 9 Apr 2019 10:06:15 -0700 Subject: [PATCH] Updated Diagnostic AGent Cert generation to honor noCertStore flag --- meshcore/agentcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcore/agentcore.c b/meshcore/agentcore.c index d8f20cd..5e9caf7 100644 --- a/meshcore/agentcore.c +++ b/meshcore/agentcore.c @@ -1683,7 +1683,7 @@ duk_ret_t ILibDuktape_MeshAgent_GenerateCertsForDiagnosticAgent(duk_context *ctx #ifdef WIN32 PCCERT_CONTEXT certCtx = NULL; char *certCtx_data = NULL; - if (wincrypto_open_ex(TRUE, rootSubject, &certCtx) == 0) // Force certificate re-generation + if (agent->noCertStore == 0 && wincrypto_open_ex(TRUE, rootSubject, &certCtx) == 0) // Force certificate re-generation { int l; do {