From 588b0ad6451e893f99c70edfae55eb987bd3583d Mon Sep 17 00:00:00 2001 From: dd dd Date: Tue, 23 Jul 2024 19:13:56 +0200 Subject: [PATCH] Extend certificate validity to 10 years --- exit/https.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exit/https.go b/exit/https.go index 1d6abed..5c1f62e 100644 --- a/exit/https.go +++ b/exit/https.go @@ -125,7 +125,7 @@ func (e *Exit) StartReverseProxy(httpTarget string, port int32) error { func (e *Exit) createAndStoreCertificateData(ctx context.Context) (*tls.Certificate, error) { priv, _ := rsa.GenerateKey(rand.Reader, 2048) notBefore := time.Now() - notAfter := notBefore.Add(365 * 24 * time.Hour) + notAfter := notBefore.Add(10 * 365 * 24 * time.Hour) serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128) serialNumber, _ := rand.Int(rand.Reader, serialNumberLimit)