I'm trying to download and install OpenSSL since my application needs to link against it.
I have tried both of the following commands, as suggested on this page:
- ps: (new-object net.webclient).DownloadFile('https://www.openssl.org/source/openssl-1.0.2d.tar.gz', 'openssl-1.0.2d.tar.gz')
- ps: Start-FileDownload 'https://www.openssl.org/source/openssl-1.0.2d.tar.gz'
However both fail in the same way:
Start-FileDownload 'https://www.openssl.org/source/openssl-1.0.2d.tar.gz'
Exception calling "DownloadFile" with "3" argument(s): "The underlying connection was closed: An unexpected error occurred on a send."
At C:\Program Files\AppVeyor\BuildAgent\Modules\build-worker-api\build-worker-api.psm1:238 char:5
+ [Appveyor.BuildAgent.Api.RestBuildServices]::DownloadFile($Url, $FileName, $ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
This looks vaguely like it might be a firewall issue. Is it possible that AppVeyor blocks outbound SSL requests on port 443?
Thanks in advance for your help!

#1 Posted by Feodor Fitsner Support staff on 28 Nov, 2015 10:54 PM
This works:
#2 Posted by chris+appveyor on 29 Nov, 2015 12:30 PM
Thanks Feodor! Unfortunately my first attempt to do this in appveyor.yml failed:
Results in this exception:
I'm guessing that the appveyor.yml parser doesn't like the PowerShell square brackets syntax. Any ideas? Is there some way to escape it?
#3 Posted by chris+appveyor on 29 Nov, 2015 08:30 PM
Double-quoting the command seems to have worked, thank you!
chris+appveyor closed this discussion on 22 Dec, 2015 09:38 PM.