Suppose that a website returns an invalid certificate, for which Firefox and Chrome give the user scary warnings. I would like to ensure that my local connection is not being man-in-the-middled (which is a real possibility in this case) so I would like to check the certificate from a remote server in another nation via SSH. How can this be done?
I did try simply opening the site in question with
elinks apparently does not throw the same scary message for invalid certificates.