Hey Ishita, you can also handle SSL certificate for Firefox by using follow lines of code:
FirefoxProfile profile=new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);
WebDriver driver=new FirefoxDriver(profile);
driver.get("www.123movies.sc");