aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-11-27 17:54:26 -0500
committerAdnan Maolood <[email protected]>2020-11-27 17:54:26 -0500
commit24e488a4cbf30e3f41d757ddfd834af6560c59cf (patch)
treeb7577e8515b1cb0054443557f491844bf5dfd71a /examples
parentFix server name in TLS connections (diff)
downloadgo-gemini-24e488a4cbf30e3f41d757ddfd834af6560c59cf.tar.xz
go-gemini-24e488a4cbf30e3f41d757ddfd834af6560c59cf.zip
examples/server: Increase certificate duration
Diffstat (limited to 'examples')
-rw-r--r--examples/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server.go b/examples/server.go
index 0328f66..c0bd1a7 100644
--- a/examples/server.go
+++ b/examples/server.go
@@ -24,7 +24,7 @@ func main() {
CommonName: hostname,
},
DNSNames: []string{hostname},
- Duration: time.Minute, // for testing purposes
+ Duration: 365 * 24 * time.Hour,
})
}