Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to know which SSL certificate is used for accessing a certain website. In my browser (Chrome, FF), the icon next to the URL does not show a SSL connection. Also in Chrome it states "Your connection to the site is not encrypted". In Wireshark, however, I have a number of TLSv1 packets that transfer between the site and my machine. Is there any way to find out which certificate it is? The site contains a flash application. Can this be the reason why Chrome doesn't see the encryption?

share|improve this question

migrated from stackoverflow.com Dec 21 '12 at 15:06

This question came from our site for professional and enthusiast programmers.

    
no, I checked where the SSL traffic goes from and to. The IP belongs to a server of the same company that runs the website. –  hansi Dec 20 '12 at 23:25
1  
Chances are the page loads unecrypted and the encrypted traffic is sent by the Flash application. When you load up this 'certain website' do you type https://... or http://? –  Nik Bougalis Dec 20 '12 at 23:25
    
i type http:// and it never changes to https:// while i'm on the site –  hansi Dec 20 '12 at 23:26
    
is there a way to figure out the certificate used by the flash application? –  hansi Dec 20 '12 at 23:32
    
Right - you type http and so your connection to the server is not encrypted. As for figuring out the certificate, no idea what mechanisms Flash offers. Why do you need this information? –  Nik Bougalis Dec 20 '12 at 23:38
add comment

2 Answers

up vote 3 down vote accepted

The SSL traffic could be requests that the Flash application is making, or any subresources on the page (such as <img src="https://..."> or <script src="https://...">. You should be able to get information about the certificate from Wireshark. Filter on "ssl.handshake.certificate" and look for a Certificate message, and expand the Secure Sockets Layer level. I'm not sure exactly what information you're trying to get, but here you can see the certificate chain, the issuer and public key of each cert, etc. Does that help?

wireshark cert info

share|improve this answer
add comment

In Wireshark, after the ServerHello message, you should see the a Certificate message coming from the server. This will contain the server's certificate chain (the first one being the server certificate itself).

This being said, seeing a certificate doesn't necessarily imply encryption. Besides cipher suites that don't encrypt (unlikely to be used by browsers anyway, so you can ignore those), what's most likely is that there is some mixed content on the page. This could come from the Flash application or other resources.

i type http:// and it never changes to https:// while i'm on the site

If you type http:// you won't necessarily be redirected to https://. Why would you? Some sites implement automatic upgrades to HTTPS to try to enforce better security, but it's only partly useful. Try to connect with https:// at least if you want to use HTTPS.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.