Skip to content

Commit

Permalink
Use current time 2019 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 672d041 commit c0e80a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ func validateCert(cert *x509.Certificate, masterCertsPem []byte) error {
roots.AppendCertsFromPEM(masterCertsPem)

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

0 comments on commit c0e80a4

Please sign in to comment.