aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-03-04 14:35:51 -0500
committerAdnan Maolood <[email protected]>2021-03-04 14:35:51 -0500
commit9f3564936e5f8965a7e3759a4a6400220db2d778 (patch)
tree78ffcfd9dd9150c7e7e6b5a2b7254c4c77c15917 /client.go
parentRename vendor.go to verify_hostname.go (diff)
downloadgo-gemini-9f3564936e5f8965a7e3759a4a6400220db2d778.tar.xz
go-gemini-9f3564936e5f8965a7e3759a4a6400220db2d778.zip
client: Ignore certificate expiration time
Diffstat (limited to 'client.go')
-rw-r--r--client.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/client.go b/client.go
index a40e3b9..2a26a63 100644
--- a/client.go
+++ b/client.go
@@ -6,7 +6,6 @@ import (
"crypto/x509"
"net"
"net/url"
- "time"
"unicode/utf8"
"golang.org/x/net/idna"
@@ -180,10 +179,6 @@ func (c *Client) verifyConnection(cs tls.ConnectionState, hostname string) error
if err := verifyHostname(cert, hostname); err != nil {
return err
}
- // Check expiration date
- if !time.Now().Before(cert.NotAfter) {
- return ErrCertificateExpired
- }
// See if the client trusts the certificate
if c.TrustCertificate != nil {
return c.TrustCertificate(hostname, cert)