mirror of
https://github.com/inspec/inspec
synced 2024-11-24 21:53:15 +00:00
allow insecure SSL connections
Signed-off-by: Sonu Saha <ahasunos@gmail.com>
This commit is contained in:
parent
057f5a3655
commit
10ccd4722b
1 changed files with 6 additions and 2 deletions
|
@ -31,9 +31,13 @@ function Install-OpenSSL {
|
|||
|
||||
Write-Host "+++ Downloading OpenSSL version 3..."
|
||||
|
||||
# Download OpenSSL installer from the official source with certificate validation skipped
|
||||
# Set to allow insecure SSL connections (bypass certificate check)
|
||||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12 -bor [System.Net.SecurityProtocolType]::Tls11 -bor [System.Net.SecurityProtocolType]::Ssl3
|
||||
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
|
||||
|
||||
# Download OpenSSL installer from the official source
|
||||
$installer_path = "$env:TEMP\Win64OpenSSL-3.0.0.exe"
|
||||
Invoke-WebRequest -Uri $openssl_url -OutFile $installer_path -SkipCertificateCheck
|
||||
Invoke-WebRequest -Uri $openssl_url -OutFile $installer_path
|
||||
|
||||
# Run the installer (silent install)
|
||||
Write-Host "+++ Installing OpenSSL..."
|
||||
|
|
Loading…
Reference in a new issue