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>
|
||||||
|
@@ -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