This commit is contained in:
17
cert_windows.go
Normal file
17
cert_windows.go
Normal file
@@ -0,0 +1,17 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
func installCA(absPath string) error {
|
||||
cmd := exec.Command("certutil", "-addstore", "-user", "root", absPath)
|
||||
if err := cmd.Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user