Skip to content

Commit 30ef95c

Browse files
committed
Fix/CI download the CA bundle and configure it with php
1 parent b792cfe commit 30ef95c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
run: |
4545
choco install php --version=8.2 --params '"/ExtensionList:mbstring,curl,openssl,xml"'
4646
refreshenv
47+
# Download CA bundle
48+
Invoke-WebRequest -Uri https://curl.se/ca/cacert.pem -OutFile C:\tools\cacert.pem
49+
# Configure PHP to use the CA bundle
50+
$phpIni = php --ini | Select-String "Loaded Configuration File" | ForEach-Object { $_.Line.Split()[-1] }
51+
Add-Content $phpIni "`nopenssl.cafile = C:\tools\cacert.pem"
4752
php -v
4853
shell: pwsh
4954

0 commit comments

Comments
 (0)