Skip to content

Commit

Permalink
Use a validity period of 2 years and 30 days.
Browse files Browse the repository at this point in the history
Fixes #32.
  • Loading branch information
jsha committed Oct 10, 2019
1 parent 6640031 commit aca96c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ func makeRootCert(key crypto.Signer, filename string) (*x509.Certificate, error)
},
SerialNumber: serial,
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(100, 0, 0),
// Set the validity period to 2 years and 30 days, to satisfy the iOS and
// macOS requirements that all server certificates must have validity
// shorter than 825 days:
// https://derflounder.wordpress.com/2019/06/06/new-tls-security-requirements-for-ios-13-and-macos-catalina-10-15/
NotAfter: time.Now().AddDate(2, 30, 0),

SubjectKeyId: skid,
AuthorityKeyId: skid,
Expand Down

0 comments on commit aca96c2

Please sign in to comment.