Dealing with Error code: sec_error_unknown_issuer in Selenium 2.1.0
419 views
Skip to first unread message
Krishnan Mahadevan
unread,
Jul 26, 2011, 6:11:06 AM7/26/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
I have been trying to get past the certificate issues when dealing with Firefox in Selenium 2.1.0 but no luck for now.
Selenium version : v2.1.0, with Core v2.1.0. Built from revision 12971
OS: Windows XP 5.1 x86
Java: Sun Microsystems Inc. 16.3-b01
Firefox Version : 3.6.15
I still cant get past the below error and as such I am not able to proceed further.
SSL Certificate error that Firefox is throwing up :
The certificate is not trusted because the issuer certificate is unknown. (Error code: sec_error_unknown_issuer)
Commands that I am using to spawn my hub and my webDriver node: java -jar selenium-server-standalone-2.1.0.jar -role hub
java -jar selenium-server-standalone-2.1.0.jar -role webdriver -trustAllSSLCertificates -hub http://localhost:4444/grid/register -port 5556 -nodeConfig webconfig.txt
public static void main(String[] args) throws InterruptedException, IOException {
URL url = new URL("http://localhost:4444/wd/hub"); DesiredCapabilities desiredCapabilities = new DesiredCapabilities(); desiredCapabilities.setBrowserName(DesiredCapabilities.firefox().getBrowserName());
FirefoxProfile firefoxProfile = new FirefoxProfile(); //firefoxProfile.addExtension(new File("C:/extensions/remember_certificate_exception-1.0.0-fx.xpi")); firefoxProfile.setAssumeUntrustedCertificateIssuer(false);
firefoxProfile.setAcceptUntrustedCertificates(false); desiredCapabilities.setCapability(FirefoxDriver.PROFILE, firefoxProfile); desiredCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
desiredCapabilities.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT, true); firefoxProfile.layoutOnDisk(); WebDriver driver = new RemoteWebDriver(url, desiredCapabilities); driver.get(MY_URL);
Thread.sleep(10000); driver.quit(); }
PS : When running the code with the following line uncommented firefoxProfile.addExtension(new File("C:/extensions/remember_certificate_exception-1.0.0-fx.xpi"));
I noticed that the RCE plug-in seems to endlessly loop through the process of adding the URL as an exception and I can never get past.
I would need to work only with RemoteWebDriver. Would appreciate if someone could please shed some light on this.
Thanks & Regards Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
Krishnan Mahadevan
unread,
Jul 27, 2011, 1:07:01 AM7/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Guys, Any pointers on this ?
Thanks & Regards Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"