Skip to content

Commit

Permalink
Reconcile release 1.4 to main (#42)
Browse files Browse the repository at this point in the history
* Add Token Auth (#29)

* Add PAM Support and Token Auth (#30)

* Fix private key entry (#32)

* Add PAM Support and Token Auth (#30)

* Modified authentication for API calls from Basic to Token Auth.

* Update install instruction and PAM example

Fixes ab#46603
fixes ab#46175
* Add license headers
  • Loading branch information
fiddlermikey committed Jul 18, 2023
1 parent 83a5383 commit 5db7c49
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.4.4
- Bug Fix: Allow PEM formats with # comments at top of file during inventory

v1.4.3
- Bug Fix: IgnoreSSLWarning was not recognized when set to true
- Modified login API call for token auth to fix issue some users were experiencing
Expand Down
6 changes: 4 additions & 2 deletions F5Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ private X509Certificate2Collection GetCertificateEntry(string path)
crtBytes = System.Convert.FromBase64String(crt);
certificateEntry = System.Text.ASCIIEncoding.ASCII.GetString(crtBytes);
break;
//PEM(w / headers)-- > L
//PEM(w / headers)-- > L or I
case "L":
case "I":
LogHandlerCommon.Trace(logger, CertificateStore, "Certificate is PEM with headers");
crtBytes = System.Convert.FromBase64String(crt);
certificateEntry = System.Text.ASCIIEncoding.ASCII.GetString(crtBytes);
Expand All @@ -335,7 +336,7 @@ private X509Certificate2Collection GetCertificateEntry(string path)
}

LogHandlerCommon.MethodExit(logger, CertificateStore, "GetCertificateEntry");

//LogHandlerCommon.Debug(logger, CertificateStore, certificateEntry);
string certificateEntryAfterRemovalOfDelim = certificateEntry.Replace("-----BEGIN CERTIFICATE----- ", "-----BEGIN CERTIFICATE-----");
CertificateCollectionConverter c = CertificateCollectionConverterFactory.FromPEM(certificateEntryAfterRemovalOfDelim);

Expand Down Expand Up @@ -409,6 +410,7 @@ private CurrentInventoryItem GetInventoryItem(string partition, string name, boo
foreach (X509Certificate2 certificate in certificateCollection)
{
certContents.Add(Convert.ToBase64String(certificate.Export(X509ContentType.Cert)));
//LogHandlerCommon.Debug(logger, CertificateStore, $"ALIAS: {name}: {Convert.ToBase64String(certificate.Export(X509ContentType.Cert))}");
}

string crtName = GetCrtName(name, false);
Expand Down
2 changes: 1 addition & 1 deletion F5Orchestrator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="Keyfactor.Logging" Version="1.1.1" />
<PackageReference Include="Keyfactor.Orchestrators.IOrchestratorJobExtensions" Version="0.7.0" />
<PackageReference Include="Keyfactor.PKI" Version="4.0.1" />
<PackageReference Include="Keyfactor.PKI" Version="4.9.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

Expand Down

0 comments on commit 5db7c49

Please sign in to comment.