mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
Add debugging output for #12
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -48,6 +49,12 @@ func (m *mkcert) installFirefox() {
|
|||||||
if m.forEachFirefoxProfile(func(profile string) {
|
if m.forEachFirefoxProfile(func(profile string) {
|
||||||
cmd := exec.Command(certutilPath, "-A", "-d", profile, "-t", "C,,", "-n", m.caUniqueName(), "-i", filepath.Join(m.CAROOT, rootName))
|
cmd := exec.Command(certutilPath, "-A", "-d", profile, "-t", "C,,", "-n", m.caUniqueName(), "-i", filepath.Join(m.CAROOT, rootName))
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("!!! You've hit a known issue. Please report the entire command output at https://github.com/FiloSottile/mkcert/issues/12\nProfile path: %s\nOS: %s/%s\ncertutil: %s\n", profile, runtime.GOOS, runtime.GOARCH, certutilPath)
|
||||||
|
cmd := exec.Command("ls", "-l", profile[4:])
|
||||||
|
cmd.Stdout, cmd.Stderr = os.Stderr, os.Stderr
|
||||||
|
cmd.Run()
|
||||||
|
}
|
||||||
fatalIfCmdErr(err, "certutil -A", out)
|
fatalIfCmdErr(err, "certutil -A", out)
|
||||||
}) == 0 {
|
}) == 0 {
|
||||||
log.Println("ERROR: no Firefox security databases found")
|
log.Println("ERROR: no Firefox security databases found")
|
||||||
|
Reference in New Issue
Block a user