Skip to content

Commit

Permalink
ab#63856
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Fine committed Oct 7, 2024
1 parent ce1f2aa commit 5585f2e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
9 changes: 3 additions & 6 deletions CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Pkcs;
using Org.BouncyCastle.Security;
using Org.BouncyCastle.Crypto.Paddings;

namespace Keyfactor.Extensions.Orchestrator.CitricAdc
{
Expand Down Expand Up @@ -626,7 +623,7 @@ private systemfile UploadFile(string alias, string contents, bool isCertificate,

systemfile file = new systemfile()
{
filecontent = contents,
filecontent = Convert.ToBase64String(Encoding.ASCII.GetBytes(contents)),
filelocation = StorePath,
filename = fileName
};
Expand All @@ -643,7 +640,7 @@ private systemfile UploadFile(string alias, string contents, bool isCertificate,
if ((ne.HResult.Equals(0x80131500) || ne.Message.Contains("File already exists")))
{
Logger.LogTrace($"File {file.filename} already exists. Trying again with new name.");
UploadFile(alias, contents, isCertificate, fileNameSuffix + 1);
file = UploadFile(alias, contents, isCertificate, fileNameSuffix + 1);
}
else
{
Expand Down Expand Up @@ -737,7 +734,7 @@ private X509Certificate2 ReadX509Certificate(string certString)
}

// ReSharper disable once PossibleIntendedRethrow
throw e;
throw;
}

return x;
Expand Down
1 change: 0 additions & 1 deletion CitrixAdcOrchestratorJobExtension/Inventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using Keyfactor.Orchestrators.Extensions.Interfaces;

using com.citrix.netscaler.nitro.resource.config.ssl;
using static Org.BouncyCastle.Math.EC.ECCurve;

namespace Keyfactor.Extensions.Orchestrator.CitricAdc
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<TargetFrameworks>net6.0</TargetFrameworks>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down
Binary file modified CitrixAdcTestConsole/bin/Debug/net6.0/CitrixAdcTestConsole.dll
Binary file not shown.
Binary file modified CitrixAdcTestConsole/bin/Debug/net6.0/CitrixAdcTestConsole.exe
Binary file not shown.
Binary file modified CitrixAdcTestConsole/bin/Debug/net6.0/CitrixAdcTestConsole.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 5585f2e

Please sign in to comment.