diff options
| author | Adnan Maolood <[email protected]> | 2021-03-04 14:35:51 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-03-04 14:35:51 -0500 |
| commit | 9f3564936e5f8965a7e3759a4a6400220db2d778 (patch) | |
| tree | 78ffcfd9dd9150c7e7e6b5a2b7254c4c77c15917 /client.go | |
| parent | Rename vendor.go to verify_hostname.go (diff) | |
| download | go-gemini-9f3564936e5f8965a7e3759a4a6400220db2d778.tar.xz go-gemini-9f3564936e5f8965a7e3759a4a6400220db2d778.zip | |
client: Ignore certificate expiration time
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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) |