Or to use the -d flag to add it to the admin trust settings: $ security add-trusted-cert -d /path/to/cert.pem The solution, as you might now guess, is either to sudo the above, which then marks it as trusted for the root user specifically: $ sudo security add-trusted-cert /path/to/cert.pem You can mark a cert as trusted for your current user as $ security add-trusted-cert /path/to/cert.pemīut that doesn't help with root. (The exact situation here is not clear to me, and the docs I've seen are vague.) (These are also distinct from the system trust settings.) Note, also, that certificate trust settings are somewhat distinct from just adding a certificate to a keychain you can mark a cert as trusted without fully adding it. Root doesn't read from the current user trust settings, but there are both an admin trust settings and root-user-specific trust settings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |