title: Dealing with "Untrusted connection" in FireFox using WebDriver
body: <p>I faced an issue with ff tests, when it tries to open the https page I get an "Untrusted connection" message and test fails. I tried many walkarounds, such as</p>
  
  <pre><code>        FirefoxProfile profile = new FirefoxProfile();
          bool AcceptUntrustedCertificates = true;
          DesiredCapabilities capability = DesiredCapabilities.Firefox();
          capability.SetCapability(FirefoxDriver.ProfileCapabilityName, profile);
          capability.SetCapability(CapabilityType.AcceptSslCertificates, true);
          Driver = new FirefoxDriver();
  </code></pre>
  
  <p>or I tried to use a default profile, where tested site added to exceptions.
  Also, I added domen to trusted </p>
  
  <blockquote>
    <p>Preferences > Edit > Advanced > Encryption > View Certificates >
    Servers</p>
  </blockquote>
  
  <p>when webdriver opens browser domen is in trusted, but still I retrieve an error message.</p>
  
  <p>Can somebody help me out?</p>