code: public void acceptCertificate() {
          String action = "Clicking override link to accept ssl certificate";
          String result = "Override link clicked";
          //for IE and Edge
          if (browser.getName() == BrowserName.INTERNETEXPLORER || browser.getName() == BrowserName.EDGE) {
              Element overrideLink = newElement(Locator.ID, "overridelink");
              if (overrideLink.is().present()) {
                  try {
                      if (browser.getName() == BrowserName.EDGE) {
                          newElement(Locator.ID, "moreInformationDropdownSpan").getWebElement().click();
                      }
                      overrideLink.getWebElement().click();
                      reporter.pass(action, result, result);
                  } catch (Exception e) {
                      reporter.fail(action, result, "Unable to click override link. "
                              + e.getMessage());
                      log.warn(e);
                  }
              }
          }
      }
docs: Safari, Edge and IE don't recognize the allowInsecureCert capability. As a result, an alternative method is
  provided in order to 'manually' accept the problematic certificate