testcerts icon indicating copy to clipboard operation
testcerts copied to clipboard

Support IPs as well

Open jkroepke opened this issue 10 months ago • 0 comments

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

jkroepke avatar Apr 05 '24 11:04 jkroepke