all repos — flounder @ e8808331dd91745dcbae79724164de0d04bd18a3

A small site builder for the Gemini protocol

fix expiration for gemini cert
alex wennerberg alex@alexwennerberg.com
Sat, 31 Oct 2020 09:12:41 -0700
commit

e8808331dd91745dcbae79724164de0d04bd18a3

parent

9bd26d43ac5ef574073bcb5a730ca2a00527271c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M gemini.gogemini.go

@@ -59,7 +59,7 @@ server.CreateCertificate = func(hostname string) (tls.Certificate, error) {

log.Println("Generating certificate for", hostname) cert, err := gmi.CreateCertificate(gmi.CertificateOptions{ DNSNames: []string{hostname}, - Duration: time.Minute, // for testing purposes + Duration: time.Minute * 43200, // one month }) if err == nil { // Write the new certificate to disk