I need to login on secured (https) server that requires applying certificates to complete authorization as I get certificate confirmation pop-up (IE) or Secure Connection Failed page (Firefox) when trying to use driver.get(url). 
I can use driver.switch_to_alert().accept() to confirm certificate usage on IE, but I want to avoid this pop-up appearence.
For Firefox, I guess, there should be appropriate preferences in FirefoxProfile, but I can't find exact
So how to automate process of applying certificates and user key with selenium-webdriver? Target browser is IEor Firefox