Skip to content

Commit

Permalink
add keychain to the search list
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey authored Jun 29, 2020
1 parent 5f54426 commit 17a3bb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mac/build-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ function sign_mac_version() {
# Set up keychain
security delete-keychain "${keychain_name}" || true
security create-keychain -p ${keychain_password} "${keychain_name}"
# add keychain to the search list
security list-keychains -d user -s "${keychain_name}"
security default-keychain -s "${keychain_name}"
security unlock-keychain -p ${keychain_password} "${keychain_name}"
security set-keychain-settings -t 3600 -u "${keychain_name}"
# Importing certificate
security import "${path_cer}" -k ~/Library/Keychains/"${keychain_name}" -T /usr/bin/codesign
# Importing identity
security import "${path_p12}" -k ~/Library/Keychains/"${keychain_name}" -P "${cert_pass}" -T /usr/bin/codesign
# Set ACL on keychain. To avoid to get codesign to yield an errSecInternalComponent you need to get the partition list (ACLs) correct.
# See https://code-examples.net/en/q/1344e6a
Expand Down

0 comments on commit 17a3bb5

Please sign in to comment.