Skip to content

Commit

Permalink
Use current time 2014 year to test old certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
artemskriabin committed Jun 25, 2024
1 parent c0e80a4 commit b349377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func validateCert(cert *x509.Certificate, masterCertsPem []byte) error {

foundCerts, err := cert.Verify(x509.VerifyOptions{
Roots: roots,
CurrentTime: time.Unix(1561467563, 0), // Tuesday, June 25, 2019 12:59:23
CurrentTime: time.Unix(1403701163, 0), // Wednesday, June 25, 2014 12:59:23
})
if err != nil {
return fmt.Errorf("invalid certificate: %w", err)
Expand Down

0 comments on commit b349377

Please sign in to comment.