Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install OpenSSL on Windows. #273

Merged
merged 5 commits into from
Nov 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ RUN Write-Host ('Installing Visual C++ Redistributable Package'); `
Copy-Item -Path /Windows/System32/vccorlib140.dll -Destination /work/out/bin/; `
Copy-Item -Path /Windows/System32/vcruntime140.dll -Destination /work/out/bin/;

#
# Install OpenSSL
# This must be done after installing Visual Studio
#
ADD https://slproweb.com/download/Win64OpenSSL-1_1_1L.msi /local/Win64OpenSSL-1_1_1L.msi
igorpeshansky marked this conversation as resolved.
Show resolved Hide resolved

# Verify SHA256 hash using expected value from https://github.com/slproweb/opensslhashes
RUN $ExpectedHash = '1e62e6459835f61c418532a1544e295be5400498b3569aadfb6d0b5d7a1c1dbc';`
$ActualHash = $(Get-FileHash /local/Win64OpenSSL-1_1_1L.msi).Hash.ToLower();`
igorpeshansky marked this conversation as resolved.
Show resolved Hide resolved
if ($ActualHash -ne $ExpectedHash) {`
throw \"OpenSSL hash mismatch. Expected: $ExpectedHash, Actual: $ActualHash\"`
};`
Start-Process msiexec.exe -Wait -ArgumentList '/i C:\local\Win64OpenSSL-1_1_1L.msi /quiet';

#
# Install winflexbison
#
Expand Down Expand Up @@ -174,4 +188,3 @@ COPY --from=gobuilder /work/out /work/out
COPY --from=javacontrib /work/out /work/out

RUN & .\pkg\goo\build.ps1 -DestDir /work/out;