I got stuck in handling UntrustedSSLcertificates using web driver in Java.
I created firefox profile like:
FirefoxProfile profile = new FirefoxProfil
//Firefox example with URL www.google.com
FirefoxProfile profile=new FirefoxProfile();
profile.setAssumeUntrustedCertificateIssuer(false);
driver=new FireforDriver(profile);
driver.get("https://google.com");
Eventually I found solution for Untrusted SSLCertificates:
ProfilesIni allProfiles = new ProfilesIni();
System.setProperty("webdriver.firefox.profile","your custom firefox profile name");
String browserProfile = stem.getProperty("webdriver.firefox.profile");
FirefoxProfile profile = allProfiles.getProfile(browserProfile);
profile.setAcceptUntrustedCertificates (true);
webdriver = new FirefoxDriver(profile);