Fix certificate formatting before send them to the server

This commit is contained in:
Dimitar Milov
2021-02-17 09:26:23 +02:00
parent 1e8308d84c
commit fa518f99ee
7 changed files with 6 additions and 7 deletions

View File

@@ -683,11 +683,10 @@ namespace VMware.vSphere.SsoAdminClient
if (ldapCertificates != null && ldapCertificates.Length > 0) {
var certificates = new List<string>();
foreach (var ldapCert in ldapCertificates) {
if (ldapCert != null) {
certificates.Add(ldapCert.ToString());
}
foreach (var ldapCert in ldapCertificates) {
certificates.Add(Convert.ToBase64String(ldapCert.Export(X509ContentType.Cert), Base64FormattingOptions.InsertLineBreaks));
}
if (certificates.Count > 0) {
adminLdapIdentitySourceDetails.certificates = certificates.ToArray();
}

View File

@@ -49,7 +49,7 @@ param($OutputFolder)
"VMware.vSphere.LsClient",
"bin",
$Configuration,
"netcoreapp2.0",
"netcoreapp3.1",
"VMware.vSphere.LsClient.dll")
$net45LsSource = [IO.Path]::Combine(
@@ -67,7 +67,7 @@ param($OutputFolder)
"VMware.vSphere.SsoAdminClient",
"bin",
$Configuration,
"netcoreapp2.0",
"netcoreapp3.1",
"VMware.vSphere.SsoAdminClient.dll")
$net45SsoAdminSource = [IO.Path]::Combine(
@@ -85,7 +85,7 @@ param($OutputFolder)
"VMware.vSphere.SsoAdmin.Utils",
"bin",
$Configuration,
"netcoreapp2.0",
"netcoreapp3.1",
"VMware.vSphere.SsoAdmin.Utils.dll")
$net45UtilsSource = [IO.Path]::Combine(