Fix certificate formatting before send them to the server
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user