MCPcopy
hub / github.com/FiloSottile/mkcert / installJava

Method installJava

truststore_java.go:81–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func (m *mkcert) installJava() {
82 args := []string{
83 "-importcert", "-noprompt",
84 "-keystore", cacertsPath,
85 "-storepass", storePass,
86 "-file", filepath.Join(m.CAROOT, rootName),
87 "-alias", m.caUniqueName(),
88 }
89
90 out, err := execKeytool(exec.Command(keytoolPath, args...))
91 fatalIfCmdErr(err, "keytool -importcert", out)
92}
93
94func (m *mkcert) uninstallJava() {
95 args := []string{

Callers 1

installMethod · 0.95

Calls 3

caUniqueNameMethod · 0.95
execKeytoolFunction · 0.85
fatalIfCmdErrFunction · 0.85

Tested by

no test coverage detected