I am running a openssl command like this:
openssl s_client -showcerts -connect $fqdn:$port
and the result is some ridiculous amount of stuff but i only want to cut out part of the certificate chain. How do i do that?
I am running a openssl command like this:
openssl s_client -showcerts -connect $fqdn:$port
and the result is some ridiculous amount of stuff but i only want to cut out part of the certificate chain. How do i do that?
The output of the code would be something like this:
blah blah
blah blah
Certificate chain
0 s:/C=US/ST=New Jersey/L=Passaic/O=Super Secret Company/OU=Webserver/CN=blah blah blah
blah blah
blah blah
....
The bold is the part i need