I am literally stuck to this problem for two days now.
Scenario:
The website that needs to be tested has a self signed certificate. So Internet Explorer (8 in windows XP_ shows
"The security certificate presented by this website was not issued by a trusted certificate authority. The security certificate presented by this website was issued for a different website's address."
Now this is perfectly natural in case of IE8 and self-signing certificates so I took the following measures to no use
- Manually added/installed the certificate as a Trusted Root Certificate in IE. But it doesn't get shown in the list, but it gets successfully added to all other tabs i.e. trusted root publisher,Intermediate Publisher Authority,Other People.
- The same certificate gets added to firefox without any problems under "servers" and works just as expected.
I tried using the following codes but one of them worked for selenium
Proxy proxy = new Proxy(); proxy.setProxyType(ProxyType.MANUAL); Proxy.setSslProxy("trustAllSSLCertificates"); DesiredCapabilities capabilities1 = DesiredCapabilities.internetExplorer(); capabilities1.setCapability(CapabilityType.PROXY, proxy);
When this doesn't work I tried using
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
I have the cybervillans certificate already installed.
- I have tried the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_ERROR_PAGE_BYPASS_ZONE_CHECK_FOR_HTTPS_KB954312 method knowing full well it is for win7.
5.I have even tried changing the URL to the issued authority but even then the problem persists.
And now I am stuck with no alternatives. Can anyone point it out to me how I can proceed? It seems I'm eternally stuck with IE8.
I have searched a lot in Google as well as in this site. But couldn't find a solution to my problem.