How can I get the public key of a webpage?

一世执手 提交于 2019-12-22 04:41:05

问题


How can I get the public key of a website like VeriSign and all other websites which use https(secure protocol)?


回答1:


It depends on the browser you're using, if you let me know I'll update my answer.

Chrome 55 and above You can now find this information in Developer Tools. Options (3 dots) -> More Tools -> Developer tools, or press F12, then click the "Security" tab and you'll get a "Security Overview" with a "View certificate" button. As per another SO post from Chrome 60 you can actually enable the option again if you go to chrome://flags/#show-cert-link.

Chrome 54 and below: If you're using Chrome then click on the green bar to the left of the 'https:' in the address bar, for the VeriSign website the green bar says Symantec Corperation [US], this will open a pop up. On the pop up click 'Certificate Information'. This will open another pop up. On this go the 'Details' tab at the top and scroll down to 'Public key' which shows the public key the website is using for it's SSL. In VeriSigns case the public key is a 2048 bit key.

IE: the green bar to click on is to the right of the web address. Clicking this brings a similar pop up where you have to click 'View certificates' which then brings up the same pop up as on Chrome where you go to the Details tab and scroll down to 'Public Key'

This is the pop up that opens after clicking the 'Certificate information' or 'View certificates' links.




回答2:


In Chrome you can get it via developer tools (F12 in windows) or pick it in the menu (Menu -> More Tools -> Developer Tools).

Then all you need to do is to pick the security tab, here are all information you need.

Just clicking on a secure popup does not work anymore.



来源:https://stackoverflow.com/questions/11047103/how-can-i-get-the-public-key-of-a-webpage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!