Debian Codegraph @

cmd/certdump/README

raw
1 certdump
2
3 Dump a PEM file containing certificates.
4
5 It takes a number of files on the command line which should contain
6 at least one certificate, and dumps the certificates found in those
7 files. If the -l flag is given, it is assumed the file is a bundle and
8 only the leaf certificate will be shown.
9
10 Certificates may also be passed on standard input; no arguments, or a
11 single "-" argument, inform certdump that it should read certificates
12 from standard input. This allows chaining, à la
13
14 cfssl bundle -domain example.net | jq .bundle | certdump
15
16 Example (kyleisom.pem and tyrfingr.pem are the bundled certificates
17 for two of my sites):
18
19 $ certdump *.pem
20 --kyleisom.pem ---
21 CERTIFICATE
22 Subject: /*.kyleisom.net/OU=Domain Control Validated/OU=PositiveSSL Wildcard
23 Issuer: /COMODO RSA Domain Validation Secure Server CA/C=GB/O=COMODO CA
24 Limited/L=Salford/ST=Greater Manchester
25 Signature algorithm: RSA / SHA256
26 Details:
27 Public key: RSA-2048
28 Serial number: 140424811868659069090147614569911695367
29 AKI: 90:AF:6A:3A:94:5A:0B:D8:90:EA:12:56:73:DF:43:B4:3A:28:DA:E7
30 SKI: 64:07:29:EA:3A:FE:2C:00:48:62:FB:22:E4:E9:72:7E:2F:0F:C3:2D
31 Valid from: 2014-11-16T00:00:00+0000
32 until: 2015-11-16T23:59:59+0000
33 Key usages: key encipherment, digital signature
34 Extended usages: server auth, client auth
35 Basic constraints: valid
36 SANs: *.kyleisom.net, kyleisom.net
37 CERTIFICATE
38 Subject: /COMODO RSA Domain Validation Secure Server CA/C=GB/O=COMODO CA
39 Limited/L=Salford/ST=Greater Manchester
40 Issuer: /COMODO RSA Certification Authority/C=GB/O=COMODO CA
41 Limited/L=Salford/ST=Greater Manchester
42 Signature algorithm: RSA / SHA384
43 Details:
44 Public key: RSA-2048
45 Serial number: 57397899145990363081023081275480378375
46 AKI: BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4
47 SKI: 90:AF:6A:3A:94:5A:0B:D8:90:EA:12:56:73:DF:43:B4:3A:28:DA:E7
48 Valid from: 2014-02-12T00:00:00+0000
49 until: 2029-02-11T23:59:59+0000
50 Key usages: cert sign, crl sign, digital signature
51 Extended usages: server auth, client auth
52 Basic constraints: valid, is a CA certificate, max path length 0
53 SANs:
54 ---tyrfingr.pem ---
55 CERTIFICATE
56 Subject: /*.tyrfingr.is/OU=Domain Control Validated/OU=PositiveSSL Wildcard
57 Issuer: /COMODO RSA Domain Validation Secure Server CA/C=GB/O=COMODO CA
58 Limited/L=Salford/ST=Greater Manchester
59 Signature algorithm: RSA / SHA256
60 Details:
61 Public key: RSA-2048
62 Serial number: 129805972439942088783496286074667556011
63 AKI: 90:AF:6A:3A:94:5A:0B:D8:90:EA:12:56:73:DF:43:B4:3A:28:DA:E7
64 SKI: C6:25:79:D7:A7:9A:85:BE:7F:DE:3B:3D:7A:B7:2E:96:DE:46:05:D7
65 Valid from: 2014-10-03T00:00:00+0000
66 until: 2015-10-03T23:59:59+0000
67 Key usages: key encipherment, digital signature
68 Extended usages: server auth, client auth
69 Basic constraints: valid
70 SANs: *.tyrfingr.is, tyrfingr.is
71 CERTIFICATE
72 Subject: /COMODO RSA Domain Validation Secure Server CA/C=GB/O=COMODO CA
73 Limited/L=Salford/ST=Greater Manchester
74 Issuer: /COMODO RSA Certification Authority/C=GB/O=COMODO CA
75 Limited/L=Salford/ST=Greater Manchester
76 Signature algorithm: RSA / SHA384
77 Details:
78 Public key: RSA-2048
79 Serial number: 57397899145990363081023081275480378375
80 AKI: BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4
81 SKI: 90:AF:6A:3A:94:5A:0B:D8:90:EA:12:56:73:DF:43:B4:3A:28:DA:E7
82 Valid from: 2014-02-12T00:00:00+0000
83 until: 2029-02-11T23:59:59+0000
84 Key usages: cert sign, digital signature, crl sign
85 Extended usages: server auth, client auth
86 Basic constraints: valid, is a CA certificate, max path length 0
87 SANs:
88 CERTIFICATE
89 Subject: /COMODO RSA Certification Authority/C=GB/O=COMODO CA
90 Limited/L=Salford/ST=Greater Manchester
91 Issuer: /AddTrust External CA Root/C=SE/O=AddTrust AB/OU=AddTrust External TTP
92 Network
93 Signature algorithm: RSA / SHA384
94 Details:
95 Public key: RSA-4096
96 Serial number: 52374340215108295845375962883522092578
97 AKI: AD:BD:98:7A:34:B4:26:F7:FA:C4:26:54:EF:03:BD:E0:24:CB:54:1A
98 SKI: BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4
99 Valid from: 2000-05-30T10:48:38+0000
100 until: 2020-05-30T10:48:38+0000
101 Key usages: digital signature, crl sign, cert sign
102 Basic constraints: valid, is a CA certificate
103 SANs:
104
105 $ certdump *.pem
106 --kyleisom.pem ---
107 CERTIFICATE
108 Subject: /*.kyleisom.net/OU=Domain Control Validated/OU=PositiveSSL Wildcard
109 Issuer: /COMODO RSA Domain Validation Secure Server CA/C=GB/O=COMODO CA
110 Limited/L=Salford/ST=Greater Manchester
111 Signature algorithm: RSA / SHA256
112 Details:
113 Public key: RSA-2048
114 Serial number: 140424811868659069090147614569911695367
115 AKI: 90:AF:6A:3A:94:5A:0B:D8:90:EA:12:56:73:DF:43:B4:3A:28:DA:E7
116 SKI: 64:07:29:EA:3A:FE:2C:00:48:62:FB:22:E4:E9:72:7E:2F:0F:C3:2D
117 Valid from: 2014-11-16T00:00:00+0000
118 until: 2015-11-16T23:59:59+0000
119 Key usages: digital signature, key encipherment
120 Extended usages: server auth, client auth
121 Basic constraints: valid
122 SANs: *.kyleisom.net, kyleisom.net
123 --tyrfingr.pem ---
124 CERTIFICATE
125 Subject: /*.tyrfingr.is/OU=Domain Control Validated/OU=PositiveSSL Wildcard
126 Issuer: /COMODO RSA Domain Validation Secure Server CA/C=GB/O=COMODO CA
127 Limited/L=Salford/ST=Greater Manchester
128 Signature algorithm: RSA / SHA256
129 Details:
130 Public key: RSA-2048
131 Serial number: 129805972439942088783496286074667556011
132 AKI: 90:AF:6A:3A:94:5A:0B:D8:90:EA:12:56:73:DF:43:B4:3A:28:DA:E7
133 SKI: C6:25:79:D7:A7:9A:85:BE:7F:DE:3B:3D:7A:B7:2E:96:DE:46:05:D7
134 Valid from: 2014-10-03T00:00:00+0000
135 until: 2015-10-03T23:59:59+0000
136 Key usages: digital signature, key encipherment
137 Extended usages: server auth, client auth
138 Basic constraints: valid
139 SANs: *.tyrfingr.is, tyrfingr.is
140
141 This same result could be had with
142
143 $ cfssl bundle -domain kyleisom.net | jq .bundle | certdump
144