Install LDAP /SSL certificates in single/multiple Servers (Powershell script)
This is a script which will be helpful to install SSL/LDAP certificate in single or multiple servers. The verification is doing by comparing the certificate serial No. #--Script for install and verify LDAP certificates in web servers--# #--Last modified 3/29/2018 12:38 AM EDT--# #--Take the server list from the text file--# $servers = Get-Content -path "D:\Scripts\Approved Scripts\LDAP_Cert_ installation\servers.txt" #--Loop for retrive server and install/verify LDAP Certificate--# foreach ($server in $servers) { $Computername = $server $pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2 #--Get the s=certificate path from user imput--# $certPath = read-host "Certificate Path" #--Install the provided LDAP certificate--# $pfx.Import($certPath) $CertStore = New-Object System.Security.Cryptography.X509Certificates.X509Store -ArgumentList "\\$($server)\root", "LocalMachine" $pfx_serialno...