Skip to content

Reset Keychain password

While using third party password authentication, many time your keychain password doesn't match your updated password.
In order to update password without loosing key are using following command.

# Find your default chain location
security default-keychain
    "/Users/<username>/Library/Keychains/login.keychain-db"

# Run following command to change password, followed by old and new prompt.
security set-keychain-password $(security default-keychain)