MCPcopy Create free account
hub / github.com/FiloSottile/intermediates / TestBadSSL

Function TestBadSSL

intermediates_test.go:14–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestBadSSL(t *testing.T) {
15 t.Skip("badssl.com certificates are currently expired")
16 c, err := tls.Dial("tcp", "incomplete-chain.badssl.com:443", &tls.Config{
17 InsecureSkipVerify: true,
18 VerifyConnection: VerifyConnection,
19 })
20 if err != nil {
21 t.Fatal(err)
22 }
23 defer c.Close()
24}
25
26func TestIncompleteChain(t *testing.T) {
27 c, err := tls.Dial("tcp", "google.com:443", &tls.Config{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected