On BigSur custom settings for the root CA store were saved under /Library/Security/trust settings/Admin.plist On Monterey this has changed but I could not yet find the new location.
Also is there an easy way to change trust settings? When you change trust settings for many root CAs you need to click through them manually, provide password each time ...
Is there some way to easily override the system root CA store? I know you can't change the file itself without disabling SIP. But some way to import a custom CA store while the original one will then be ignored?