Skip to content

Commit

Permalink
ab#61881
Browse files Browse the repository at this point in the history
  • Loading branch information
leefine02 authored and leefine02 committed Sep 16, 2024
1 parent a96552e commit adedcc7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,17 @@ public void UpdateBindings(string keyPairName, List<string> 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++;
Expand Down

0 comments on commit adedcc7

Please sign in to comment.