Debian Codegraph @

cmd/stealchain/README

raw
1 stealchain
2
3 This is a utility to extract the verified X.509 chain from a TLS
4 connection. It takes a list of sites on the command line; for each
5 site that it can connect to, it will dump the certificates that the
6 peer actually sent (and not the verified chain that is built from
7 this).
8
9 It was written to assist in debugging issues with certificate chains.
10
11 There are a few knobs:
12
13 -ca allows the trusted CA roots to be specified via a PEM bundle of
14 root certificates.
15
16 -sni specifies the server name for SNI. This applies to all hosts in
17 the run; if this is run as
18
19 $ stealchain -sni foo.com foo.com bar.com
20
21 it will attempt to use "foo.com" as the server name for both hosts.
22
23 -noverify skips certificate verification. This might be useful for seeing
24 what certificates a server is actually sending.
25
26
27 Examples:
28
29 $ stealchain kyleisom.net
30 [+] wrote kyleisom.net.pem.
31 $ readchain kyleisom.net.pem
32 [+] kyleisom.net.pem:
33 *.kyleisom.net
34 COMODO RSA Domain Validation Secure Server CA
35
36 $ stealchain google.com microsoft.com apple.com amazon.com
37 [+] wrote google.com.pem.
38 [+] wrote microsoft.com.pem.
39 [+] wrote apple.com.pem.
40 [+] wrote amazon.com.pem.
41
42