Save Remote SSL Certificate via Linux Command Line

Posted by Jim on Server Fault See other posts from Server Fault or by Jim
Published on 2010-04-05T20:00:13Z Indexed on 2010/04/05 20:03 UTC
Read the original article Hit count: 582

Filed under:
|
|
|
|

Can you think of any linux command-line method for saving the certificate presented by a HTTPS server? Something along the lines of having curl/wget/openssl make a SSL connection and save the cert rather than the HTTP response content.

The gui equivalent to what I'm looking for would be to browse to the HTTPS site, double-click on the browser "secure site" icon, and export the cert. Except the goal here is to do it non-interactively.

Thanks, Jim

© Server Fault or respective owner

Related posts about https

Related posts about ssl