With Go 1.26.2 and macOS 26.4.1, tls.TestVerifyHostname fails:
$ go test github.com/zmap/zcrypto/tls -run TestVerifyHostname
--- FAIL: TestVerifyHostname (0.07s)
tls_test.go:481: x509: failed to load system roots and no roots provided
FAIL
FAIL github.com/zmap/zcrypto/tls 0.341s
FAIL
I'm not able to repro in a linux docker image of Go 1.26.2, so I suspect that there's some modern macOS specific code needs to be ported over from the stdlib crypto/tls library
With Go 1.26.2 and macOS 26.4.1,
tls.TestVerifyHostnamefails:I'm not able to repro in a linux docker image of Go 1.26.2, so I suspect that there's some modern macOS specific code needs to be ported over from the stdlib crypto/tls library