I want to read the SSL certificate of the current page in a browser using javascript. I have seen this which was around 2010. But I want to know is there any now? I need this to prevent man in the middle attack using SSL pinning.
Asked
Active
Viewed 2,107 times
1
-
Possible duplicate of [Is there a way to get SSL certificate details using JavaScript?](http://stackoverflow.com/questions/2604399/is-there-a-way-to-get-ssl-certificate-details-using-javascript) – Robby Cornelissen Apr 13 '17 at 06:10
-
I have already added this duplicate in the question. It was around 2010 . I want to know if there is way now ? – unlucky_13 Apr 13 '17 at 08:17
-
Possible duplicate of [Within a web browser, is it possible for JavaScript to obtain information about the HTTPS Certificate being used for the current page?](https://stackoverflow.com/questions/2402121/within-a-web-browser-is-it-possible-for-javascript-to-obtain-information-about) – Evan Carroll Apr 24 '19 at 17:53