diff --git a/truststore_java.go b/truststore_java.go index a7d3980..aa7cd18 100644 --- a/truststore_java.go +++ b/truststore_java.go @@ -58,6 +58,10 @@ func init() { } func (m *mkcert) checkJava() bool { + if !hasKeytool { + return false + } + // exists returns true if the given x509.Certificate's fingerprint // is in the keytool -list output exists := func(c *x509.Certificate, h hash.Hash, keytoolOutput []byte) bool {