AppServices.showErrorDialog("SSL Handshake Failed","The configured server certificate at "+crtFile.getAbsolutePath()+" did not match the certificate provided by the server at "+tlsServerException.getServer().getHost()+"."+
"This may indicate a man-in-the-middle attack!"+
AppServices.showErrorDialog("SSL Handshake Failed","The configured server certificate at "+crtFile.getAbsolutePath()+" did not match the certificate provided by the server at "+tlsServerException.getServer().getHost()+"."+
"\n\nThis may indicate a man-in-the-middle attack!"+
"\n\nChange the configured server certificate if you would like to proceed.");
Optional<ButtonType>optButton=AppServices.showErrorDialog("SSL Handshake Failed","The certificate provided by the server at "+tlsServerException.getServer().getHost()+" appears to have changed."+
"This may indicate a man-in-the-middle attack!"+
Optional<ButtonType>optButton=AppServices.showErrorDialog("SSL Handshake Failed","The certificate provided by the server at "+tlsServerException.getServer().getHost()+" appears to have changed."+
"\n\nThis may indicate a man-in-the-middle attack!"+
"\n\nDo you still want to proceed?",ButtonType.NO,ButtonType.YES);