In many cases we can face the error related to SSL certificate as mentioned below :-

So, this error in Edge browser can be handled using EdgeOptions class provided by Selenium Web driver.
The sample code block is mentioned below:-
EdgeOptions edgeOptions = new EdgeOptions();
//Accepting the Insecure certificates through boolean parameter
edgeOptions.setAcceptInsecureCerts(true);
//Creating instance of Edge driver by passing reference of EdgeOptions object
WebDriver driver = new EdgeDriver(edgeOptions);
driver.get("https://sslSite.com");
In the above code block we are accepting the Insecure certificate by passing Boolean value true as argument. For more detailed option you can also visit this link.