You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature request (unless I'm missing something and this already does exist).
Essentially my question is, is it possible to add a trusted application when creating a keychain item? This would behave exactly like the -T option when using the security command line tool with add-internet-password. For reference, here are all the options provided by security add-internet-password:
$ security add-internet-password
Usage: add-internet-password [-a account] [-s server] [-w password] [options...] [-A|-T appPath] [keychain]
-a Specify account name (required)
-c Specify item creator (optional four-character code)
-C Specify item type (optional four-character code)
-d Specify security domain string (optional)
-D Specify kind (default is "Internet password")
-j Specify comment string (optional)
-l Specify label (if omitted, server name is used as default label)
-p Specify path string (optional)
-P Specify port number (optional)
-r Specify protocol (optional four-character SecProtocolType, e.g. "http", "ftp ")
-s Specify server name (required)
-t Specify authentication type (as a four-character SecAuthenticationType, default is "dflt")
-w Specify password to be added
-A Allow any application to access this item without warning (insecure, not recommended!)
-T Specify an application which may access this item (multiple -T options are allowed)
-U Update item if it already exists (if omitted, the item cannot already exist)
By default, the application which creates an item is trusted to access its data without warning.
You can remove this default access by explicitly specifying an empty app pathname: -T ""
If no keychain is specified, the password is added to the default keychain.
The text was updated successfully, but these errors were encountered:
This is a feature request (unless I'm missing something and this already does exist).
Essentially my question is, is it possible to add a trusted application when creating a keychain item? This would behave exactly like the
-T
option when using thesecurity
command line tool withadd-internet-password
. For reference, here are all the options provided bysecurity add-internet-password
:The text was updated successfully, but these errors were encountered: