From adedcc7425aa32fd81c3031ba6c22e03ef8d459c Mon Sep 17 00:00:00 2001 From: leefine02 Date: Mon, 16 Sep 2024 19:33:24 +0000 Subject: [PATCH] ab#61881 --- CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs b/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs index 7cae993..bf83723 100644 --- a/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs +++ b/CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs @@ -396,13 +396,17 @@ public void UpdateBindings(string keyPairName, List virtualServerNames, vservername = vsName, snicert = sniBool }; - Logger.LogTrace($"Adding binding {keyPairName} for virtual server {vsName}"); + Logger.LogTrace($"Adding binding {keyPairName} for virtual server {vsName} and sni {sniBool.ToString()}"); //Citrix Requires you do delete first when SNI with same domain or you will get a duplicate domain error var filters = new filtervalue[1]; filters[0] = new filtervalue("certKeyName", keyPairName); if (sniBool && sslvserver_sslcertkey_binding.count_filtered(_nss, vsName, filters) > 0) - sslvserver_sslcertkey_binding.delete(_nss, ssb); + { + Logger.LogTrace($"Removing binding for virtual server {vsName} and sni {sniBool.ToString()}"); + base_response response = sslvserver_sslcertkey_binding.delete(_nss, ssb); + Logger.LogTrace($"Removing binding results: ErrorCode: {response.errorcode}, Message: {response.message}"); + } sslvserver_sslcertkey_binding.add(_nss, ssb); i++;