feat(GODT-3104): added log entry for cert install status on startup on macOS.

This commit is contained in:
Xavier Michelon
2023-11-08 16:30:06 +01:00
parent 4a01c46aed
commit dc584ea29b
6 changed files with 33 additions and 0 deletions

View File

@ -356,6 +356,10 @@ func removeCertTrustCGo(buffer *C.char, size C.ulonglong) error {
}
}
func osSupportCertInstall() bool {
return true
}
// installCert installs a certificate in the keychain. The certificate is added to the keychain and it is set as trusted.
// This function will trigger a security prompt from the system, unless the certificate is already trusted in the user keychain.
func installCert(certPEM []byte) error {