"crypto/x509"
"encoding/pem"
"fmt"
- "io/ioutil"
"log"
"os"
"os/exec"
"go.cypherpunks.ru/ucspi"
)
+var (
+ CmdCerttool = "certtool"
+ CmdWish = "wish8.7"
+)
+
func certInfo(certRaw []byte) string {
- cmd := exec.Command("certtool", "--certificate-info", "--inder")
+ cmd := exec.Command(CmdCerttool, "--certificate-info", "--inder")
cmd.Stdin = bytes.NewReader(certRaw)
out, err := cmd.Output()
if err != nil {
grid columnconfigure . 0 -weight 1
`)
- cmd := exec.Command("wish8.7")
- ioutil.WriteFile("/tmp/w.tcl", b.Bytes(), 0666)
+ cmd := exec.Command(CmdWish)
+ // ioutil.WriteFile("/tmp/w.tcl", b.Bytes(), 0666)
cmd.Stdin = &b
err = cmd.Run()
exitError, ok := err.(*exec.ExitError)