How to Handle SSL Certificates in Selenium WebDriver for Chrome, Firefox, Edge, and Safari Browsers | Test Automation Central
ChromeOptions options = new ChromeOptions();
options.setAcceptInsecureCerts(true);
WebDriver driver = new ChromeDriver(options);
For detailed tutorials and source code, visit -