Skip to content

Commit

Permalink
feat(inv): add sub command rfpkcs12fix to stores inventory. This …
Browse files Browse the repository at this point in the history
…subcli will "fix" stores of type `RFPKCS12` that contain more than 1 certificate chain by removing all chains, except for the most recently issued leaf cert.

Signed-off-by: spbsoluble <[email protected]>
  • Loading branch information
spbsoluble committed Oct 23, 2024
1 parent 0821cf5 commit 6ee8959
Show file tree
Hide file tree
Showing 3 changed files with 608 additions and 64 deletions.
10 changes: 6 additions & 4 deletions cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/google/uuid"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"io"
"net/http"
"os"
"path/filepath"
"strconv"
"time"

"github.com/google/uuid"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)

func boolToPointer(b bool) *bool {
Expand Down Expand Up @@ -191,6 +192,7 @@ func initLogger() {
zerolog.TimeFieldFormat = zerolog.TimeFormatUnix
log.Logger = log.With().Caller().Logger()
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stdout, TimeFormat: time.RFC3339})
zerolog.SetGlobalLevel(zerolog.Disabled)
}

func intToPointer(i int) *int {
Expand Down
Loading

0 comments on commit 6ee8959

Please sign in to comment.