aboutsummaryrefslogtreecommitdiff
path: root/examples/cert.go
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-10-13 14:22:15 -0400
committeradnano <[email protected]>2020-10-13 14:22:15 -0400
commitdb89a34935c6404e141a6e635c529dae2dad928c (patch)
tree96f562420e820c60498a9074ae8d318c4e01521d /examples/cert.go
parentRemove (*Request).Hostname function (diff)
downloadgo-gemini-db89a34935c6404e141a6e635c529dae2dad928c.tar.xz
go-gemini-db89a34935c6404e141a6e635c529dae2dad928c.zip
examples/server: Generate new certificates when they expire
Diffstat (limited to 'examples/cert.go')
-rw-r--r--examples/cert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cert.go b/examples/cert.go
index 4c08578..d6ab53b 100644
--- a/examples/cert.go
+++ b/examples/cert.go
@@ -12,7 +12,7 @@ import (
func main() {
host := "localhost"
- duration := 365 * 24 * time.Hour
+ duration := 2 * time.Minute
crt, key, err := gmi.NewRawCertificate(host, duration)
if err != nil {
log.Fatal(err)