If you are using firefox browser with selenium and you are facing captcha and certificates(for https traffic).
Then use same profile for handling captcha and certificate.
Refer the following link for "How to create a firefox profile".
Now you can use same profile in webdriver using below code.
File f=new File("profile folder name");
FirefoxProfile firefoxProfile=new FirefoxProfile(f);
WebDriver driver = new FirefoxDriver(firefoxProfile);