diff --git a/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs b/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs index bf83723..0bf4942 100644 --- a/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs +++ b/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs @@ -315,11 +315,12 @@ public void UpdateKeyPair(string keyPairName, string certFileName, string keyFil if (count > 0) { Logger.LogTrace($"Updating certificate-key pair with name {keyPairName}"); - base_response chgResponse = sslcertkey.change(_nss, certKeyObject); - Logger.LogDebug($"sslcertkey.change: ## Error Code ##: {chgResponse.errorcode} ## Message ##: {chgResponse.message}"); base_response updResponse = sslcertkey.update(_nss, certKeyObject); Logger.LogDebug($"sslcertkey.update: ## Error Code ##: {updResponse.errorcode} ## Message ##: {updResponse.message}"); + + base_response chgResponse = sslcertkey.change(_nss, certKeyObject); + Logger.LogDebug($"sslcertkey.change: ## Error Code ##: {chgResponse.errorcode} ## Message ##: {chgResponse.message}"); } else {