Using a newly drafted Okta Device Trust script, this is the issue that some users are running into
ERROR: Error in accessing default keychain
Originally it was an issue with python and python3, but that has been resolved, however, even after running the following command for the, the user still sees the okta keychain in Keychains, though its grey with all actions also greyed out but the user can see the okta-db file when running security list-keychains
"sudo security delete-keychain "/Users/$user/Library/Keychains/okta.keychain-db".
I ran the above during an ssh session but even after closing and reopening the Keychains app it still shows up, which is troubling.
Tried confirming deleting the file and from the SSH session at least it shows its gone sudo security delete-keychain /Users/$user/Library/Keychains/okta.keychain-db security: SecKeychainDelete: The specified keychain could not be found.
running "sudo ls /Users/$user/Library/Keychains" shows that okta-db is now missing
Even when trying to run the list-keychains using the launchctl format it only shows system.keychain
sudo launchctl asuser 501 sudo -u $user security list-keychains
"/Library/Keychains/System.keychain"
any suggestion?
Thanks in advance!