From 805540421137bf6a55ee49621a399fcfb0b3e455 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Fri, 1 Apr 2016 15:27:13 -0700 Subject: [PATCH] Update certdump README. --- cmd/certdump/README | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cmd/certdump/README b/cmd/certdump/README index 6416d84..b58450d 100644 --- a/cmd/certdump/README +++ b/cmd/certdump/README @@ -7,6 +7,12 @@ at least one certificate, and dumps the certificates found in those files. If the -l flag is given, it is assumed the file is a bundle and only the leaf certificate will be shown. +Certificates may also be passed on standard input; no arguments, or a +single "-" argument, inform certdump that it should read certificates +from standard input. This allows chaining, à la + + cfssl bundle -domain example.net | jq .bundle | certdump + Example (kyleisom.pem and tyrfingr.pem are the bundled certificates for two of my sites): @@ -131,3 +137,8 @@ Details: Extended usages: server auth, client auth Basic constraints: valid SANs: *.tyrfingr.is, tyrfingr.is + +This same result could be had with + +$ cfssl bundle -domain kyleisom.net | jq .bundle | certdump +