How to get a certificate from server using openssl?

With SNI:

If the remote server is using SNI (that is, sharing multiple SSL hosts on a single IP address) you will need to send the correct hostname in order to get the right certificate.

Without SNI:

If the remote server is not using SNI, then you can skip -servername parameter.

To view the full details of a sites cert you can use this chain of commands as well:

Leave a Reply