How to save a remote server SSL certificate locally as a file - Super User
This is gbroiles' answer, but I wanted to point out that the cURL project has a page with a few more details on using openssl
to save the remote server's SSL certificate:
openssl s_client -connect {HOSTNAME}:{PORT} | tee logfile
- Type
QUIT
and press the Enter / Return key. - The certificate will be listed between "BEGIN CERTIFICATE" and "END CERTIFICATE" markers.
If you want to see the data in the certificate, you can use:
openssl x509 -inform PEM -in certfile -text -out certdata
where
certfile
is the certificate extracted fromlogfile
. Look incertdata
.
Read full article from How to save a remote server SSL certificate locally as a file - Super User
No comments:
Post a Comment