Set OPENSSL_CONF variable to point to openssl.cfg
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<metadata>
|
||||
<id>OpenSSL.Light</id>
|
||||
<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>
|
||||
<owners>Ethan Brown</owners>
|
||||
<summary>Open Source SSL v2/v3 and TLS v1 toolkit</summary>
|
||||
|
@@ -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)"
|
||||
|
Reference in New Issue
Block a user