In our company we have a very robust automation framework which we try to keep well maintained via unit tests. We have flags to set whether or not SSL certs should be ignored or not. In order to ensure that this feature we are adding does not get broken in the future, we wish to add some unit tests to the build process to prevent deploying a broken build.
Essentially - I have 3 browsers I want to support.
Internet Explorer - when SSL certificates are not secure takes me to a website where I can verify text on a page to assert that the SSL connection is secure or not.
Chrome however, displays the red 'Not Secure' message at the top of the page.
Does anyone know off hand if there is a javascript API to hook into chrome that will let me get a boolean value to indicate if the current page has a valid SSL Cert?