diff --git a/doc.go b/doc.go index f0d3fdb..76306d0 100644 --- a/doc.go +++ b/doc.go @@ -43,7 +43,7 @@ Clients can control when to trust certificates with TrustCertificate: Clients can create client certificates upon the request of a server: - client.CreateCertificate = func(hostname, path string) *tls.Certificate { + client.CreateCertificate = func(hostname, path string) (tls.Certificate, error) { return gemini.CreateCertificate(gemini.CertificateOptions{ Duration: time.Hour, })