Skip to content

Commit

Permalink
Disable time and name checks
Browse files Browse the repository at this point in the history
  • Loading branch information
artemskriabin committed Jun 25, 2024
1 parent b349377 commit b8b637d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,9 @@ func validateCert(cert *x509.Certificate, masterCertsPem []byte) error {
roots.AppendCertsFromPEM(masterCertsPem)

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

0 comments on commit b8b637d

Please sign in to comment.