1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
9 func (c
*Certificate
) systemVerify(opts
*VerifyOptions
) (chains
[][]*Certificate
, err error
) {
13 func execSecurityRoots() (*CertPool
, error
) {
14 cmd
:= exec
.Command("/usr/bin/security", "find-certificate", "-a", "-p", "/System/Library/Keychains/SystemRootCertificates.keychain")
15 data
, err
:= cmd
.Output()
20 roots
:= NewCertPool()
21 roots
.AppendCertsFromPEM(data
)