diff --git a/security.go b/security.go index 32f0c90..7378333 100644 --- a/security.go +++ b/security.go @@ -23,7 +23,6 @@ import ( "runtime" "sort" "strings" - "syscall" "time" "go.mozilla.org/pkcs7" @@ -489,7 +488,7 @@ func loadSystemRoots() (*x509.CertPool, error) { // Use certutil to download all the root certs. if needSync { cmd := exec.Command("certutil", "-syncWithWU", dir) - cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} + hideWindow(cmd) out, err := cmd.Output() if err != nil { return roots, err