From 27bddfebb7356c2180ffd34836185c8e60e17b71 Mon Sep 17 00:00:00 2001 From: BOPOHA Date: Fri, 8 Oct 2021 17:22:15 +0200 Subject: [PATCH] update weak RSA Key size up to 4096; fixes #15 --- casigner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/casigner.go b/casigner.go index e3791b5..0dd35d9 100644 --- a/casigner.go +++ b/casigner.go @@ -115,7 +115,7 @@ func SignHosts(ca tls.Certificate, hosts []string) (*tls.Certificate, error) { } } rnd := mrand.New(mrand.NewSource(serial.Int64())) - certPriv, err := rsa.GenerateKey(rnd, 1024) + certPriv, err := rsa.GenerateKey(rnd, 4096) if err != nil { return nil, err }