Skip to content

Instantly share code, notes, and snippets.

@omarzl
Created May 5, 2022 22:23
Show Gist options
  • Save omarzl/b0f10cde4b7aead23255eec9a0e0b13a to your computer and use it in GitHub Desktop.
Save omarzl/b0f10cde4b7aead23255eec9a0e0b13a to your computer and use it in GitHub Desktop.
RAPPI_KEYCHAIN=$HOME/Library/Keychains/rappi.keychain-db
# Keychain creation
security -v create-keychain -p $KEYCHAIN_PWD $RAPPI_KEYCHAIN
# Sets the new keychain as the default one
security -v default-keychain -s $RAPPI_KEYCHAIN
# Allows Apple tools and codesign command to use the keychain
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $KEYCHAIN_PWD $RAPPI_KEYCHAIN
# Unlocks the keychain
security -v unlock-keychain -p $KEYCHAIN_PWD $RAPPI_KEYCHAIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment