Update vCenter-SSL.ps1
This commit is contained in:
1 parent
ca5f9a69ff
commit
30d7f6b45a
1 file changed
+2
-1
+2
-1
@@ -82,7 +82,8 @@ function Invoke-SafeRestMethod {
|
||||
try {
|
||||
$handler = [System.Net.Http.HttpClientHandler]::new()
|
||||
$handler.AutomaticDecompression = [System.Net.DecompressionMethods]::None
|
||||
$handler.ServerCertificateCustomValidationCallback = { $true }
|
||||
$handler.ServerCertificateCustomValidationCallback = { param($sender, $cert, $chain, $errors) return $true }
|
||||
|
||||
|
||||
$client = [System.Net.Http.HttpClient]::new($handler)
|
||||
$client.Timeout = [System.TimeSpan]::FromSeconds($TimeoutSec)
|
||||
|
||||
Reference in new issue
Block a user