MCPcopy
hub / github.com/FiloSottile/mkcert / checkNSS

Method checkNSS

truststore_nss.go:73–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func (m *mkcert) checkNSS() bool {
74 if !hasCertutil {
75 return false
76 }
77 success := true
78 if m.forEachNSSProfile(func(profile string) {
79 err := exec.Command(certutilPath, "-V", "-d", profile, "-u", "L", "-n", m.caUniqueName()).Run()
80 if err != nil {
81 success = false
82 }
83 }) == 0 {
84 success = false
85 }
86 return success
87}
88
89func (m *mkcert) installNSS() bool {
90 if m.forEachNSSProfile(func(profile string) {

Callers 3

installNSSMethod · 0.95
RunMethod · 0.95
installMethod · 0.95

Calls 3

forEachNSSProfileMethod · 0.95
caUniqueNameMethod · 0.95
RunMethod · 0.80

Tested by

no test coverage detected