Handling UntrustedSSLcertificates using WebDriver

Solution 1:

//Firefox example with URL www.google.com

FirefoxProfile profile=new FirefoxProfile();

profile.setAssumeUntrustedCertificateIssuer(false);

driver=new FireforDriver(profile);

driver.get("https://google.com");