Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium Testing HTTPs Trust All certificates working for FF but not IE

I've been playing arround with functional testing using Selenium RC.

I keep running into problems when the test goes to the login page of our site and switches to HTTPS.

I keep changing settings but, each browser gets thrown out of working.

Using **iehta* and **chrome* as my browsers and the Trust All SSL Certificates & Ensure Clean Session settings I can get FF3 to login to our site but, IE throws a "There is a problem with this website's security certificate." error. (I have installed the certificate)

Why doesn't Trust All certificates work with IE?

like image 562
DazManCat Avatar asked Feb 27 '23 09:02

DazManCat


1 Answers

There are two steps. One is to start the server with the "-trustAllSSLCertificates" option and the other is to configure the browser to use the Selenium server as its proxy. *iexploreproxy and *firefoxproxy handle the proxy settings for you. Selenium (as of 2.0a5) will auto-configure *firefox to use the Selenium server as a proxy if the "-trustAllSSLCertificates" flag is used. *iexplore, using HTA, is never configured by Selenium to use a proxy. So, you'll need to handle that a priori or via a custom launcher.

More details in the following article: http://nirvdrum.com/2010/04/13/how-to-accept-self-signed-ssl-certificates-in-selenium.html

like image 183
nirvdrum Avatar answered May 03 '23 10:05

nirvdrum