@@ -42,23 +42,23 @@ func TestPlatformVerifier(t *testing.T) {
4242 {
4343 name : "expired leaf" ,
4444 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" ,
4646 },
4747 {
4848 name : "wrong host for leaf" ,
4949 host : "wrong.host.badssl.com" ,
5050 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 " ,
5252 },
5353 {
5454 name : "self-signed leaf" ,
5555 host : "self-signed.badssl.com" ,
56- expectedErr : "x509: “*.badssl.com” certificate is not trusted " ,
56+ expectedErr : "x509: certificate signed by unknown authority " ,
5757 },
5858 {
5959 name : "untrusted root" ,
6060 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 " ,
6262 },
6363 {
6464 name : "revoked leaf" ,
@@ -74,7 +74,7 @@ func TestPlatformVerifier(t *testing.T) {
7474 name : "expired leaf (custom time)" ,
7575 host : "google.com" ,
7676 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" ,
7878 },
7979 {
8080 name : "valid chain (custom time)" ,
0 commit comments