Replace password prompt with Touch ID to read Keychain password
24
votes
2
answers
6108
views
I'm using the following command to fetch a password from the Keychain in a shell script:
security find-generic-password -w -s "MyServiceName"
It works, but it's showing a popup window asking me for the login keychain password:
> security
wants to use your confidential information stored in
> "MyServiceName" in your keychain. To allow this, enter the "login"
> keychain password.
>
> With the options to Deny
, Allow
or Always Allow
But I don't want to enter my keychain password every time, so I can't use "Allow" and I'd rather not "Always Allow" in order to keep some level of security here.
Ideally I'd like to get a Touch ID prompt instead. Is there any way to do this ?
Asked by Coyotwill
(359 rep)
Jan 5, 2018, 10:19 PM
Last activity: Mar 10, 2025, 02:27 PM
Last activity: Mar 10, 2025, 02:27 PM