Skip to content

Commit

Permalink
💚 Fix keychain import
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Sep 21, 2023
1 parent 3ebd48e commit aea1cab
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 aea1cab

Please sign in to comment.