https://github.com/rgl/security-add-trusted-cert
This will import and trust a given CA certificate without user interaction
https://github.com/rgl/security-add-trusted-cert
macos
Last synced: about 2 months ago
JSON representation
This will import and trust a given CA certificate without user interaction
- Host: GitHub
- URL: https://github.com/rgl/security-add-trusted-cert
- Owner: rgl
- Created: 2023-06-08T14:19:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T10:26:43.000Z (about 3 years ago)
- Last Synced: 2025-03-31T07:31:07.301Z (over 1 year ago)
- Topics: macos
- Language: Swift
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
[](https://github.com/rgl/security-add-trusted-cert/actions/workflows/build.yml)
[](https://cirrus-ci.com/github/rgl/security-add-trusted-cert)
This will import and trust a given CA certificate without user interaction.
This is required because on macOS Big Sur 11.3+ the traditional certificate installation method, `security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain example.com-ca-crt.pem`, started to require user interaction, which prevents automated certificate installations.
# References
* [tart macos xcode image template](https://github.com/cirruslabs/macos-image-templates/blob/42b40752b5590aaa700f6b5e166c9d81cb4ddadb/templates/xcode.pkr.hcl#L139-L143).
* [[macOS] Install Apple certificate for Big Sur via swift binary](https://github.com/actions/runner-images/pull/3311).