Public/Set-PSDifyConfiguration.ps1
function Set-PSDifyConfiguration { [CmdletBinding()] param ( [Boolean] $IgnoreSSLVerification = $false ) switch ($IgnoreSSLVerification) { $true { $env:PSDIFY_DISABLE_SSL_VERIFICATION = "true" Write-Host -ForegroundColor Yellow "[PSDify] SSL verification is disabled" } $false { Remove-Item Env:\PSDIFY_DISABLE_SSL_VERIFICATION -ErrorAction SilentlyContinue Write-Host -ForegroundColor Green "[PSDify] SSL verification is enabled" } } } |