howtos:extract_intermediate_and_root_ca_s_from_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
howtos:extract_intermediate_and_root_ca_s_from_server [29/08/2017 18:18] – domingo | howtos:extract_intermediate_and_root_ca_s_from_server [02/12/2018 21:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | openssl s_client -connect dr.dk:443 -showcerts 2>&1 < /dev/null | awk '/ | ||
+ | </ | ||
+ | Connect to server (dr.dk in this case) and match the begin/end tags of the certificates and print them. After each end tag we print the word " | ||
+ | |||
+ | < | ||
+ | |||
+ | It stops printing when it hits the next " | ||
+ | |||
+ | And here is a version done with " | ||
+ | < | ||
+ | openssl s_client -connect tv2.dk:443 -showcerts </ | ||
+ | </ |