testcerts
testcerts copied to clipboard
Support IPs as well
In my tests, I would like to connect to 127.0.0.1, but its fails
tls: failed to verify certificate: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs
Currently, ca.NewKeyPair
only supports domains, but no IPs.
Would it be possible to add 127.0.0.1 and ::1 by default? The x509.Certificate has a dedicated field for IPAddresses