Set OPENSSL_CONF variable to point to openssl.cfg
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<metadata>
|
<metadata>
|
||||||
<id>OpenSSL.Light</id>
|
<id>OpenSSL.Light</id>
|
||||||
<title>OpenSSL - The Open Source SSL and TLS toolkit</title>
|
<title>OpenSSL - The Open Source SSL and TLS toolkit</title>
|
||||||
<version>1.0.1.3</version>
|
<version>1.0.1.20121127</version>
|
||||||
<authors>Shining Light Productions</authors>
|
<authors>Shining Light Productions</authors>
|
||||||
<owners>Ethan Brown</owners>
|
<owners>Ethan Brown</owners>
|
||||||
<summary>Open Source SSL v2/v3 and TLS v1 toolkit</summary>
|
<summary>Open Source SSL v2/v3 and TLS v1 toolkit</summary>
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
*) Workarounds for some broken servers that "hang" if a client hello
|
*) Workarounds for some broken servers that "hang" if a client hello
|
||||||
record length exceeds 255 bytes:
|
record length exceeds 255 bytes:
|
||||||
|
|
||||||
1. Do not use record version number > TLS 1.0 in initial client
|
1. Do not use record version number > TLS 1.0 in initial client
|
||||||
hello: some (but not all) hanging servers will now work.
|
hello: some (but not all) hanging servers will now work.
|
||||||
2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate
|
2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate
|
||||||
|
@@ -17,6 +17,19 @@ try {
|
|||||||
|
|
||||||
Install-ChocolateyPackage @params
|
Install-ChocolateyPackage @params
|
||||||
|
|
||||||
|
if (!$Env:OPENSSL_CONF)
|
||||||
|
{
|
||||||
|
$configPath = Join-Path $Env:ProgramFiles 'OpenSSL\bin\openssl.cfg'
|
||||||
|
|
||||||
|
if (Test-Path $configPath)
|
||||||
|
{
|
||||||
|
[Environment]::SetEnvironmentVariable(
|
||||||
|
'OPENSSL_CONF', $configPath, 'User')
|
||||||
|
|
||||||
|
Write-Host "Configured OPENSSL_CONF variable as $configPath"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Write-ChocolateySuccess $package
|
Write-ChocolateySuccess $package
|
||||||
} catch {
|
} catch {
|
||||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||||
|
Reference in New Issue
Block a user