Skip to content

Commit

Permalink
fix: fixes added TimeStamping via ExtKeyUsage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhundere committed Nov 26, 2024
1 parent 14faded commit d4efa31
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/certmaker/certmaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package certmaker
import (
"context"
"crypto/x509"
"encoding/json"
"encoding/pem"
"fmt"
"os"
Expand Down Expand Up @@ -217,14 +216,6 @@ func ValidateTemplatePath(path string) error {
if !strings.HasSuffix(path, ".json") {
return fmt.Errorf("template file must have .json extension: %s", path)
}
content, err := os.ReadFile(path)
if err != nil {
return fmt.Errorf("error reading template file: %w", err)
}
var js json.RawMessage
if err := json.Unmarshal(content, &js); err != nil {
return fmt.Errorf("invalid JSON in template file: %w", err)
}

return nil
}

0 comments on commit d4efa31

Please sign in to comment.