openSSL could not get installed

Daniel Fahlke's Avatar

Daniel Fahlke

25 Jan, 2015 12:45 PM

if you look at https://ci.appveyor.com/project/Flyingmana/magento-composer-installer-396/build/1.0.6 you see some build error.
It seams the download url the script uses is not available anymore.

I just started to use AppVeyor, so I dont know where exactly to report this problem or how to get it solved.
But openSSL is a very important part for every php project I think, so I assume its worth to get fixed and also to get some documentation.

  1. Support Staff 1 Posted by Feodor Fitsner on 26 Jan, 2015 02:33 AM

    Feodor Fitsner's Avatar

    Hi Daniel,

    You can find installation script inside OpenSSL NuGet package:

    $package = 'OpenSSL.Light'
    
    try {
    
      #default is to plop in c:\ -- yuck!
      $installDir = Join-Path $Env:ProgramFiles 'OpenSSL'
    
      $params = @{
        packageName = $package;
        fileType = 'exe';
        #InnoSetup - http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
        silentArgs = '/silent', '/verysilent', '/sp-', '/suppressmsgboxes',
          "/DIR=`"$installDir`"";
        url = 'https://slproweb.com/download/Win32OpenSSL_Light-1_0_1j.exe'
        url64bit = 'https://slproweb.com/download/Win64OpenSSL_Light-1_0_1j.exe'
      }
    
      Install-ChocolateyPackage @params
    
      if (!$Env:OPENSSL_CONF)
      {
        $configPath = Join-Path $installDir '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)"
      throw
    }
    

    Apparently both download URLs are dead. I checked OpenSSL download page - URLs changed to:

    http://slproweb.com/download/Win32OpenSSL_Light-1_0_1L.exe
    http://slproweb.com/download/Win64OpenSSL_Light-1_0_1L.exe
    

    I think you have two options here:

    1) Fix the package and submit it to Chocolatey (so other can enjoy it)
    2) Just download the package and run its installer during the build (you can grab silent installation parameters from package PS script).

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac