diff --git a/OpenSSL.Light/OpenSSL.Light.nuspec b/OpenSSL.Light/OpenSSL.Light.nuspec index 55551a7..7ed1804 100644 --- a/OpenSSL.Light/OpenSSL.Light.nuspec +++ b/OpenSSL.Light/OpenSSL.Light.nuspec @@ -3,7 +3,7 @@ OpenSSL.Light OpenSSL - The Open Source SSL and TLS toolkit - 1.0.1.3 + 1.0.1.20121127 Shining Light Productions Ethan Brown Open Source SSL v2/v3 and TLS v1 toolkit @@ -75,7 +75,7 @@ *) Workarounds for some broken servers that "hang" if a client hello record length exceeds 255 bytes: - + 1. Do not use record version number > TLS 1.0 in initial client hello: some (but not all) hanging servers will now work. 2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate diff --git a/OpenSSL.Light/tools/chocolateyInstall.ps1 b/OpenSSL.Light/tools/chocolateyInstall.ps1 index dfcf23f..d83a923 100644 --- a/OpenSSL.Light/tools/chocolateyInstall.ps1 +++ b/OpenSSL.Light/tools/chocolateyInstall.ps1 @@ -17,6 +17,19 @@ try { 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 } catch { Write-ChocolateyFailure $package "$($_.Exception.Message)"