boolean (CefBrowser browser, CefLoadHandler.ErrorCode cert_error, String request_url, CefSSLInfo sslInfo, CefCallback callback) { ApplicationManager.getApplication().invokeLater(() -> { try { CertificateManager.getInstance().getTrustManager().checkServerTrusted(sslInfo.certificate.getCertificatesChain(), "UNKNOWN"); callback.Continue(); } catch (CertificateException e) { callback.cancel(); } }); return true; }