We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d34fa49 commit e391884Copy full SHA for e391884
1 file changed
src/StorageGRID-Webscale.psm1
@@ -123,7 +123,12 @@ function global:Connect-SGWServer {
123
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
124
}
125
else {
126
- Write-Warning "PowerShell 6 does not yet support skipping of certificate checks"
+ if (!"Invoke-RestMethod:SkipCertificateCheck") {
127
+ $PSDefaultParameterValues.Add("Invoke-RestMethod:SkipCertificateCheck",$true)
128
+ }
129
+ else {
130
+ $PSDefaultParameterValues.'Invoke-RestMethod:SkipCertificateCheck'=$true
131
132
133
134
0 commit comments