diff options
| author | adnano <[email protected]> | 2020-10-13 14:22:15 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-10-13 14:22:15 -0400 |
| commit | db89a34935c6404e141a6e635c529dae2dad928c (patch) | |
| tree | 96f562420e820c60498a9074ae8d318c4e01521d /examples/cert.go | |
| parent | Remove (*Request).Hostname function (diff) | |
| download | go-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.go | 2 |
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) |