cirruslabs / macos-image-templates

MIT License
219 stars 60 forks source link

How to trust a private CA? #82

Closed rgl closed 1 year ago

rgl commented 1 year ago

Is there a way to trust a private CA?

The old way of doing this does not seem to work anymore with macos-ventura:

security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain example.com-crt.pem

Having a way of doing this (e.g. with some kind of helper program like add-certificate.swift?) from this image would be nice.

FWIW, I've extracted the add-certificate code into https://github.com/rgl/security-add-trusted-cert.