Skip to content

Commit

Permalink
Fix windows examples CI by upgrading TLS trust store (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishazharov authored Feb 15, 2024
1 parent 4831827 commit 25ed4c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .bazelci/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ tasks:
- "-//cmake_hello_world_lib/static:libhello_example"
- "-//cmake_hello_world_lib/static:test_hello"
- "-//cmake_with_data/..."
batch_commands:
- powershell -noexit "& "".\..\.bazelci\windows-update-certs.ps1"""
build_targets: *windows_targets
test_targets: *windows_targets
build_flags:
Expand Down
6 changes: 6 additions & 0 deletions .bazelci/windows-update-certs.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cd $env:USERPROFILE;
Invoke-WebRequest https://curl.haxx.se/ca/cacert.pem -OutFile $env:USERPROFILE\cacert.pem;
$plaintext_pw = 'PASSWORD';
$secure_pw = ConvertTo-SecureString $plaintext_pw -AsPlainText -Force;
& openssl.exe pkcs12 -export -nokeys -out certs.pfx -in cacert.pem -passout pass:$plaintext_pw;
Import-PfxCertificate -Password $secure_pw -CertStoreLocation Cert:\LocalMachine\Root -FilePath certs.pfx;

0 comments on commit 25ed4c4

Please sign in to comment.