Skip to content

Commit fa1fc09

Browse files
Restore check for the option bundle in the URL certificate inspection (#1215)
1 parent 41a2d92 commit fa1fc09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

command/certificate/inspect.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ func inspectAction(ctx *cli.Context) error {
213213
if err != nil {
214214
return err
215215
}
216-
return inspectCertificates(ctx, peerCertificates, os.Stdout)
216+
if bundle {
217+
return inspectCertificates(ctx, peerCertificates, os.Stdout)
218+
}
219+
return inspectCertificates(ctx, peerCertificates[:1], os.Stdout)
217220
default: // is not URL
218221
var pemError *pemutil.InvalidPEMError
219222
crts, err := pemutil.ReadCertificateBundle(crtFile)

0 commit comments

Comments
 (0)