diff --git a/truststore_nss.go b/truststore_nss.go index 38e9ddc..9d72727 100644 --- a/truststore_nss.go +++ b/truststore_nss.go @@ -97,6 +97,9 @@ func (m *mkcert) forEachNSSProfile(f func(profile string)) (found int) { return } for _, profile := range profiles { + if stat, err := os.Stat(profile); err != nil || !stat.IsDir() { + continue + } if _, err := os.Stat(filepath.Join(profile, "cert8.db")); !os.IsNotExist(err) { f("dbm:" + profile) found++