diff --git a/cert.go b/cert.go index 4ce36ccf..9a2b0865 100644 --- a/cert.go +++ b/cert.go @@ -59,7 +59,7 @@ func (m *mkcert) makeCert(hosts []string) { // Certificates last for 2 years and 3 months, which is always less than // 825 days, the limit that macOS/iOS apply to all certificates, // including custom roots. See https://support.apple.com/en-us/HT210176. - expiration := time.Now().AddDate(2, 3, 0) + expiration := time.Now().AddDate(1, 0, 0) tpl := &x509.Certificate{ SerialNumber: randomSerialNumber(), @@ -225,7 +225,7 @@ func (m *mkcert) makeCertFromCSR() { fatalIfErr(err, "failed to parse the CSR") fatalIfErr(csr.CheckSignature(), "invalid CSR signature") - expiration := time.Now().AddDate(2, 3, 0) + expiration := time.Now().AddDate(1, 0, 0) tpl := &x509.Certificate{ SerialNumber: randomSerialNumber(), Subject: csr.Subject,