How to save the password of your OpenPGP key in macOS Keychain Access or use a caching time

Updated 03 Nov, 2026 12:42 AM in FAQ

For easier handling of the password of your OpenPGP key you can either store it in macOS Keychain Access or use a caching timer to remember it for a set amount of time.

1. Store password in macOS Keychain Access

When pinentry asks for the password, with which your OpenPGP key is protect, that dialog has an option to Save in Keychain. Ticking that option will store the password in macOS keychain. When needed that password will be retrieved automatically from macOS Keychain Access. Using this mechanism will mean pinentry will no longer ask for the password. The password is protected with your macOS user password. To see stored OpenPGP passwords in macOS Keychain Access:

  1. open macOS Keychain Access (not GPG Keychain)
  2. enter gnupg in the search field
  3. double click any search result and then tick the Show password checkbox

To enable this option by default open System Settings > GPG Suite. In the password section tick the Store in macOS Keychain option. The pinentry dialog asking for your password always will show that checkbox.

2. Caching your password

That password section of the GPG Suite Settings also has the option to Remember for n seconds. Enter an amount of time for which you want your password to be cached. After that time has passed you will again be asked for your OpenPGP password by pinentry when access to your secret key is needed for an operation.

3. Delete stored passwords

The Delete... button clears the cache immediately and deletes all OpenPGP passwords stored in the macOS Keychain Access.

GPG_Suite_Preferences.png pinentry_example.png

More from the knowledge base