Skip to content

Commit

Permalink
💚 Fix keychain import
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu authored and anuejn committed Oct 11, 2023
1 parent ed2389d commit 10ee41a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/import_cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ security default-keychain -s build.keychain
security unlock-keychain -p "$MAC_KEY_PASSWORD" build.keychain

echo "Importing key"
security import <(echo $MAC_KEY | base64 -d) -P "$MAC_KEY_PASSWORD" -f pkcs12
echo $MAC_KEY | base64 -d > key.cer
security import key.cer -P "$MAC_KEY_PASSWORD" -f pkcs12
rm key.cer

echo "Trusting Certificate"
# Using sudo because overwriting trust settings would require interactive password input
Expand Down

0 comments on commit 10ee41a

Please sign in to comment.