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