Skip to content

Commit

Permalink
xpi: remove xpi ee backdating from armagaddon mitigation, fixes #334
Browse files Browse the repository at this point in the history
  • Loading branch information
jvehent committed Sep 27, 2019
1 parent 647e604 commit 3b9f107
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions signer/xpi/x509.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ func (s *XPISigner) makeTemplate(cn string) *x509.Certificate {
Province: []string{"CA"},
Locality: []string{"Mountain View"},
},
// set the start date of the EE cert before the expiration of the AMO intermediate
// from armagaddon. https://bugzilla.mozilla.org/show_bug.cgi?id=1548973
NotBefore: time.Unix(1556300000, 0),
NotAfter: time.Now().Add(8760 * time.Hour), // one year
NotBefore: time.Now(),
NotAfter: time.Now().Add(87600 * time.Hour), // ten year
SignatureAlgorithm: s.issuerCert.SignatureAlgorithm,
KeyUsage: x509.KeyUsageDigitalSignature,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageCodeSigning},
Expand Down

0 comments on commit 3b9f107

Please sign in to comment.