summaryrefslogtreecommitdiffhomepage
path: root/ci/ios/create-vm/scripts/add-apple-certs.sh
blob: be56458eb890ea8ed2aca60044de0fc1edd90ca8 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# inspired by https://github.com/actions/runner-images/blob/fb3b6fd69957772c1596848e2daaec69eabca1bb/images/macos/provision/configuration/configure-machine.sh#L33-L61

sudo security delete-certificate -Z FF6797793A3CD798DC5B2ABEF56F73EDC9F83A64 /Library/Keychains/System.keychain

curl -o AppleWWDRCAG3.cer https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer
curl -o DeveloperIDG2CA.cer https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer
sudo security add-certificates AppleWWDRCAG3.cer
sudo security add-certificates DeveloperIDG2CA.cer