@@ -42,23 +42,23 @@ func TestPlatformVerifier(t *testing.T) {
42
42
{
43
43
name : "expired leaf" ,
44
44
host : "expired.badssl.com" ,
45
- expectedErr : "x509: “*.badssl.com” certificate is expired" ,
45
+ expectedErr : "x509: certificate has expired or is not yet valid: “*.badssl.com” certificate is expired" ,
46
46
},
47
47
{
48
48
name : "wrong host for leaf" ,
49
49
host : "wrong.host.badssl.com" ,
50
50
verifyName : "wrong.host.badssl.com" ,
51
- expectedErr : "x509: “ *.badssl.com” certificate name does not match input " ,
51
+ expectedErr : "x509: certificate is valid for *.badssl.com, badssl.com, not wrong.host.badssl.com " ,
52
52
},
53
53
{
54
54
name : "self-signed leaf" ,
55
55
host : "self-signed.badssl.com" ,
56
- expectedErr : "x509: “*.badssl.com” certificate is not trusted " ,
56
+ expectedErr : "x509: certificate signed by unknown authority " ,
57
57
},
58
58
{
59
59
name : "untrusted root" ,
60
60
host : "untrusted-root.badssl.com" ,
61
- expectedErr : "x509: “BadSSL Untrusted Root Certificate Authority” certificate is not trusted " ,
61
+ expectedErr : "x509: certificate signed by unknown authority " ,
62
62
},
63
63
{
64
64
name : "revoked leaf" ,
@@ -74,7 +74,7 @@ func TestPlatformVerifier(t *testing.T) {
74
74
name : "expired leaf (custom time)" ,
75
75
host : "google.com" ,
76
76
verifyTime : time.Time {}.Add (time .Hour ),
77
- expectedErr : "x509: “*.google.com” certificate is expired" ,
77
+ expectedErr : "x509: certificate has expired or is not yet valid: “*.google.com” certificate is expired" ,
78
78
},
79
79
{
80
80
name : "valid chain (custom time)" ,
0 commit comments