An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# About

[![GitHub Actions Build](https://github.com/rgl/security-add-trusted-cert/actions/workflows/build.yml/badge.svg)](https://github.com/rgl/security-add-trusted-cert/actions/workflows/build.yml)
[![Cirrus CI Build Status](https://api.cirrus-ci.com/github/rgl/security-add-trusted-cert.svg)](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).