diff --git a/java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java b/java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java
index <HASH>..<HASH> 100644
--- a/java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java
+++ b/java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java
@@ -19,6 +19,7 @@ limitations under the License.
 package org.openqa.selenium.firefox;
 
 import static org.openqa.selenium.OutputType.FILE;
+import static org.openqa.selenium.remote.CapabilityType.ACCEPT_SSL_CERTS;
 import static org.openqa.selenium.remote.CapabilityType.PROXY;
 
 import org.openqa.selenium.Capabilities;
@@ -106,6 +107,11 @@ public class FirefoxDriver extends RemoteWebDriver implements TakesScreenshot {
       profile.setProxyPreferences(proxy);
     }
 
+    if (capabilities.getCapability(ACCEPT_SSL_CERTS) != null) {
+      Boolean acceptCerts = (Boolean) capabilities.getCapability(ACCEPT_SSL_CERTS);
+      profile.setAcceptUntrustedCertificates(acceptCerts);
+    }
+
     return profile;
   }
DouniaBerrada: Adding the possibility to control SSL certs from the Firefox profile.

r<I>