Differentiate between unknown and untrusted certificates
This commit is contained in:
@@ -15,9 +15,9 @@ import (
|
||||
|
||||
var (
|
||||
client = &gemini.Client{
|
||||
TrustCertificate: func(cert *x509.Certificate, knownHosts *gemini.KnownHosts) bool {
|
||||
TrustCertificate: func(cert *x509.Certificate, knownHosts *gemini.KnownHosts) error {
|
||||
// Trust all certificates
|
||||
return true
|
||||
return nil
|
||||
},
|
||||
}
|
||||
cert tls.Certificate
|
||||
|
||||
Reference in New Issue
Block a user