but since that prompts for credentials to access the keychain, it just hangs since the privileged helper doesn't seem to have access to the UI.
I’m actually surprised it hangs rather than failing with an error but, yes, this is going to be problematic.
Why are you using a privileged helper for this? If this is a user credential, wouldn’t it be better to sign as that user?
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
I'm sorry, I looked at my notes and you're correct, it did just fail with "CSSM Exception: -2147415840 CSSMERR_CSP_NO_USER_INTERACTION". I had thought the utility required root access to run, which is why we wanted to use the privileged helper, but it appears that is not the case. I'll make that adjustment and then we should be good to go. I should have tested my assumptions first!