Skip to content

Commit

Permalink
Restore check for the option bundle in the URL certificate inspecti…
Browse files Browse the repository at this point in the history
…on (#1215)
  • Loading branch information
francescopepe authored Jun 25, 2024
1 parent 41a2d92 commit fa1fc09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion command/certificate/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ func inspectAction(ctx *cli.Context) error {
if err != nil {
return err
}
return inspectCertificates(ctx, peerCertificates, os.Stdout)
if bundle {
return inspectCertificates(ctx, peerCertificates, os.Stdout)
}
return inspectCertificates(ctx, peerCertificates[:1], os.Stdout)
default: // is not URL
var pemError *pemutil.InvalidPEMError
crts, err := pemutil.ReadCertificateBundle(crtFile)
Expand Down

0 comments on commit fa1fc09

Please sign in to comment.