FirefoxDriver - Connection is not secure
<p>When I attempt to run my automation tests against Firefox 47.0.1 I get a warning mentioning that the connection is insecure. I have written the below code to resolve the issue, which unfortunately it's not working. If anyone has a solution that would be great.  </p>

<pre><code>if browser == 'firefox':
        profile = webdriver.FirefoxProfile()
        profile.set_preference("webdriver_accept_untrusted_certs",  True)
        self.driver = webdriver.Firefox(firefox_profile=profile)
</code></pre>

<p>This occures because of 
<code>profile.set_preference("webdriver_accept_untrusted_certs",  True)</code></p>

<p>Remove this and try instead:
<code>profile.set_preference("webdriver_assume_untrusted_issuer",  False)</code>
<code>profile.update_preferences()</code></p>

python selenium-webdriver selenium-firefoxdriver