mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Also re-arranges web content by using old content from lib/web into lib/webserver, while new lib/web contains the proxy configuration. Fixes #19
14 lines
458 B
PowerShell
14 lines
458 B
PowerShell
function Disable-IcingaUntrustedCertificateValidation()
|
|
{
|
|
try {
|
|
[System.Net.ServicePointManager]::CertificatePolicy = $null;
|
|
|
|
Write-IcingaConsoleNotice 'Successfully disabled untrusted certificate validation for this shell instance';
|
|
} catch {
|
|
Write-IcingaConsoleError (
|
|
[string]::Format(
|
|
'Failed to disable untrusted certificate policy: {0}', $_.Exception.Message
|
|
)
|
|
);
|
|
}
|
|
}
|