Is there a way to get SSL certificate details using JavaScript?

前端 未结 4 1019
再見小時候
再見小時候 2020-11-27 08:10

I\'d like to gather certain details of an SSL certificate on a particular web-site. I know this is straightforward using the openssl tool on Linux/MacOSX. However is the sam

4条回答
  •  佛祖请我去吃肉
    2020-11-27 08:56

    This information simply isn't exposed to javascript, it is so rarely used (well never since it isn't available, but it would be rarely used) that it wasn't deemed important enough to add to the javascript object model I suppose...same for any very rarely used feature left out of anything.

    Of course, it could have also been left out for security reasons...I'm not creative enough to come up with one at the moment, but I'm sure there's an exploit to be had there as well.

提交回复
热议问题