1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-07 11:03:55 +00:00

Updated Diagnostic AGent Cert generation to honor noCertStore flag

This commit is contained in:
Bryan Roe
2019-04-09 10:06:15 -07:00
parent 7bf31b0a28
commit 61f768d88b

View File

@@ -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 {