Skip to content

TestVerifyHostname fails (at least on Go 1.26.2/macos 26.4.1) #484

@jmhodges

Description

@jmhodges

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions