Fix windows examples CI by upgrading TLS trust store (#1171)
This commit is contained in:
parent
4831827e29
commit
25ed4c48ce
|
@ -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:
|
||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue