diff options
Diffstat (limited to 'src/crypto/x509/root_windows_test.go')
-rw-r--r-- | src/crypto/x509/root_windows_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crypto/x509/root_windows_test.go b/src/crypto/x509/root_windows_test.go index f6dafe4004..54dbc161dc 100644 --- a/src/crypto/x509/root_windows_test.go +++ b/src/crypto/x509/root_windows_test.go @@ -52,6 +52,16 @@ func TestPlatformVerifier(t *testing.T) { host: "google.com", }, { + name: "valid chain (dns check)", + host: "google.com", + verifyName: "google.com", + }, + { + name: "valid chain (fqdn dns check)", + host: "google.com.", + verifyName: "google.com.", + }, + { name: "expired leaf", host: "expired.badssl.com", expectedErr: "x509: certificate has expired or is not yet valid: ", |