aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-23 09:08:44 -0500
committerAdnan Maolood <[email protected]>2021-02-23 09:08:44 -0500
commit8190e819e8cbe9004fbbb760645ca9032f629491 (patch)
tree1349e38865e9555ef5d04b11190722d5468dc2e0 /server.go
parentcertificate: Update documentation (diff)
downloadarchived-go-gemini-8190e819e8cbe9004fbbb760645ca9032f629491.tar.xz
archived-go-gemini-8190e819e8cbe9004fbbb760645ca9032f629491.zip
server: Mention certificate store
Diffstat (limited to 'server.go')
-rw-r--r--server.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.go b/server.go
index cfb1e61..c98b8d7 100644
--- a/server.go
+++ b/server.go
@@ -38,6 +38,9 @@ type Server struct {
//
// If GetCertificate is nil or returns nil, then no certificate
// will be used and the connection will be aborted.
+ //
+ // See the certificate submodule for a certificate store that creates
+ // and rotates certificates as needed.
GetCertificate func(hostname string) (*tls.Certificate, error)
// ErrorLog specifies an optional logger for errors accepting connections,