I am literally stuck to this problem for two days now.
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."
Solutions I tried
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 Cybervillains SSL 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.
- 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.