fix(workflows): add Apple root certificates download and import to local signing workflow
Some checks failed
Test Local Signing / test-local-signing (push) Failing after 9s
Some checks failed
Test Local Signing / test-local-signing (push) Failing after 9s
This commit is contained in:
parent
87f14be9a6
commit
26e782b4b1
@ -48,15 +48,23 @@ jobs:
|
|||||||
security default-keychain -s "$KEYCHAIN_PATH"
|
security default-keychain -s "$KEYCHAIN_PATH"
|
||||||
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
|
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
|
||||||
|
|
||||||
|
# Download and import Apple root certificates
|
||||||
|
echo "📥 Downloading Apple root certificates..."
|
||||||
|
curl -O https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer
|
||||||
|
curl -O https://www.apple.com/certificateauthority/DeveloperIDG2.cer
|
||||||
|
|
||||||
|
echo "🔐 Importing Apple root certificates..."
|
||||||
|
security import AppleWWDRCAG3.cer -k "$KEYCHAIN_PATH" -T /usr/bin/codesign
|
||||||
|
security import DeveloperIDG2.cer -k "$KEYCHAIN_PATH" -T /usr/bin/codesign
|
||||||
|
|
||||||
# Import certificate with all access rights
|
# Import certificate with all access rights
|
||||||
echo "📥 Importing certificate..."
|
echo "📥 Importing developer certificate..."
|
||||||
security import certificate.p12 \
|
security import certificate.p12 \
|
||||||
-k "$KEYCHAIN_PATH" \
|
-k "$KEYCHAIN_PATH" \
|
||||||
-P "$CERTIFICATE_PASSWORD" \
|
-P "$CERTIFICATE_PASSWORD" \
|
||||||
-T "/usr/bin/codesign" \
|
-T "/usr/bin/codesign" \
|
||||||
-T "/usr/bin/security" \
|
-T "/usr/bin/security" \
|
||||||
-T "/usr/bin/xcrun" \
|
-T "/usr/bin/xcrun"
|
||||||
-A
|
|
||||||
|
|
||||||
# Update keychain partition list
|
# Update keychain partition list
|
||||||
security set-key-partition-list \
|
security set-key-partition-list \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user