Update vCenter-SSL.ps1
This commit is contained in:
@@ -123,9 +123,9 @@ $Params = @{
|
||||
Uri = "https://$vCenterURL/rest/com/vmware/cis/session"
|
||||
}
|
||||
|
||||
if ($IsCoreCLR) {
|
||||
#if ($IsCoreCLR) {
|
||||
$Params.Add("SkipCertificateCheck", $true)
|
||||
}
|
||||
#}
|
||||
|
||||
try {
|
||||
$RestApi = Invoke-WebRequest @Params
|
||||
@@ -219,9 +219,9 @@ $Params = @{
|
||||
Body = $json
|
||||
}
|
||||
|
||||
if ($IsCoreCLR) {
|
||||
#if ($IsCoreCLR) {
|
||||
$Params.Add("SkipCertificateCheck", $true)
|
||||
}
|
||||
#}
|
||||
Write-Host "Preparing to Replace Certificate." -ForegroundColor Green
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user