Skip to content

Instantly share code, notes, and snippets.

View abrahamberg's full-sized avatar

Daniel Abrahamberg abrahamberg

View GitHub Profile
# this is a workaround fix problem with Zscaler ssl sertificate on wsl2
# donwload and copy the ssl certificate om
sudo cp /mnt/c/ZscalerRootCerts/ZscalerRootCertificate-2048-SHA256.pem /etc/ssl/certs/
sudo update-ca-certificates
echo ${{ secrets.SONAR_HOST_URL }} | sed -e 's/\(.\)/\1 /g'
http 'https://api.github.com/XXXXX' \
'Authorization: token ghp_PAT' \
--verify=/c/ZscalerRootCerts/XXXXXXXXXX.pem
curl --location --request GET 'https://api.github.com/XXXXXXXX' \
--header 'Authorization: token ghp_XXXXXXXX_PAT' \
--cacert /c/dir/XXXX_CERT.pem