Who can help me with script that could do this
Open Keychain Access. - Find my internet password keychain - Double-click, goto Acces Control tab. - Select ‘Allow all applications to access this item’. - Save the changes.
As of Jamf Pro 10.10, this is now a feature in Configuration Profiles.
Choose Computers > Configuration Profiles > New to create a new Configuration Profile. Select the Certificates payload and upload your certificate for deployment. Enable the "Allow all apps access" option.