How to handle https & accept certificate- Is ProxyInjection solution or something else.

145 views
Skip to first unread message

Shaba K

unread,
Oct 24, 2010, 5:03:27 PM10/24/10
to seleniu...@googlegroups.com
Hi All,
 
Our official defect tracking tool BUGZILLA is https
 
on entering the URL it results in certificate
 
How do i accept certificate.
 
using trustALLCertificates doesn't work
 
How else should i go about.
 
Experts please let me know how to go about ProxyInjection mode .. its purpose & if it helps resolve the issue
 
-Shabana

Shaba K

unread,
Oct 24, 2010, 5:04:43 PM10/24/10
to seleniu...@googlegroups.com
Adding my piece of code.
 

try

{

RemoteControlConfiguration rc =

new RemoteControlConfiguration();

rc.trustAllSSLCertificates();

selServer = new SeleniumServer(rc);

selServer.start();

}

catch(Exception e)

{

e.printStackTrace();

}



kiran

unread,
Oct 24, 2010, 10:04:31 PM10/24/10
to seleniu...@googlegroups.com
http://kirankanumuri.blogspot.com/2010/09/how-to-supressaccept-ssl-certificates.html

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.



--
Regards,
Kiran K


santhosh soma

unread,
Oct 25, 2010, 12:12:54 AM10/25/10
to seleniu...@googlegroups.com

   Hi All,

  I have the solution for this and it works for firefox only.Please follow the steps to execute the scripts or to handle the certificate issues.

1.Create Firefox profile with any name.
2.Close all the Firefox browsers if opens
3.Go to run and type the "firefox.exe -profilemanager" the command.
4.Open your Firefox profile by clicking on that
5.Login to the your application and manually handle all the certificates once.
6.Now Run the selenium server with the following command
   java -jar seleniumserver.jar -firefoxProfileTemplate profile-name.

7.Run the scripts.

Hopefully it works and let me know if you want any thing else here.

Thanks
Santhosh.

Shaba K

unread,
Oct 25, 2010, 5:35:53 AM10/25/10
to seleniu...@googlegroups.com
I am starting selenium server within code.
 
Is there a way to start to pass profilename within code.
 
-Shabana

Shaba K

unread,
Oct 25, 2010, 6:11:18 AM10/25/10
to seleniu...@googlegroups.com
Does starting browser in *iexploreproxy require webdriver
 
I am on RC 1.0.7
 
-Shabana

kiran

unread,
Oct 25, 2010, 6:16:31 AM10/25/10
to seleniu...@googlegroups.com
Hi Shaba,

Running internet explorer in proxy mode requires cyber villian certificate to be installed .Check my blog it has steps on how to configure proxy for both Firefox and Internet Explorer http://kirankanumuri.blogspot.com/2010/09/how-to-supressaccept-ssl-certificates.html

Regards,
Kiran

Shaba K

unread,
Oct 25, 2010, 6:21:40 AM10/25/10
to seleniu...@googlegroups.com
Yeah i am doing it exactly the same
with an exception of installing CA certificate.
 
 
Is it manadtory to install certificate.
At the moment without installing certificate i get 
 
 

There is a problem with this website's security certificate.

 

The security certificate presented by this website was not issued by a trusted certificate authority.

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.

 

We recommend that you close this webpage and do not continue to this website.

 

Recommended iconClick here to close this webpage.

 

Not recommended iconContinue to this website (not recommended).

 

Shaba K

unread,
Oct 25, 2010, 6:24:53 AM10/25/10
to seleniu...@googlegroups.com
Here's what i see when i click on the "Click to cntinue"
 
I cancelled the JUnit test.
 
When i reran the testcase i see.
 

HTTP ERROR: 400

Could not proxy https://bugzilla.est.org.uk:443/
java.lang.RuntimeException: Couldn't establish SSL handshake.  Try using trustAllSSLCertificates.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

RequestURI=/

Whats g

HTTP ERROR: 400

Could not proxy https://bugzilla.est.org.uk:443/
java.lang.RuntimeException: Couldn't establish SSL handshake.  Try using trustAllSSLCertificates.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

RequestURI=/

Whats going on ?? some oen explain please.
-Shabana

Shaba K

unread,
Oct 25, 2010, 6:30:03 AM10/25/10
to seleniu...@googlegroups.com
I have installed the Cybervillians certificate
 
I still see the below issue.
 
Have started browser as *iexploreproxy
 
-Shabana

NeelakandanRVJ

unread,
Oct 25, 2010, 6:41:33 AM10/25/10
to seleniu...@googlegroups.com
Hi,

   You have to see how to include firefox profile template in junit.

Shaba K

unread,
Oct 25, 2010, 9:21:24 AM10/25/10
to seleniu...@googlegroups.com
Hi ..
 
All blogs i went through speak mostly about passing browserprofile through command prompt.
As against to my requirement of passing it thru code.
 
Please let me know if there are any pointers on this or if anyone has wrked on the same.
 
-Shabana

Reply all
Reply to author
Forward
0 new messages