How to get Certificate (signed by - Common Name) of HTTPS website from the browser using Selenium python bindings

19 views
Skip to first unread message

py_ssl_cert

unread,
Sep 24, 2016, 9:48:07 PM9/24/16
to webdriver

Once i am able to load a HTTPs page using python selenium webdriver, I have an added step for verfication ---- > check the "issued by" string of the server cert in the browser.


Andreas Tolfsen

unread,
Sep 25, 2016, 6:29:40 AM9/25/16
to webd...@googlegroups.com, py_ssl_cert
This information isn’t exposed in the WebDriver API and it’s not
exposed to JavaScript either.

The only way I can think of is for your test to query the server
process (some HTTPDS like nginx allows RPC to do this) or to use other
tools that are more appropriate for the job, such as libcurl.
Reply all
Reply to author
Forward
0 new messages