From 153815d9e3f0b651701d402627920799a2f342c3 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 6 Feb 2023 11:01:42 +0200 Subject: [PATCH] indicate in ssl handshake warning that a certificate renewal may be the cause --- src/main/java/com/sparrowwallet/sparrow/AppServices.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppServices.java b/src/main/java/com/sparrowwallet/sparrow/AppServices.java index 0e3af4c9..b15f9f4b 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppServices.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppServices.java @@ -296,13 +296,13 @@ public class AppServices { File crtFile = Config.get().getElectrumServerCert(); if(crtFile != null && Config.get().getServerType() == ServerType.ELECTRUM_SERVER) { 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\nThis may be simply due to a certificate renewal, or it may indicate a man-in-the-middle attack." + "\n\nChange the configured server certificate if you would like to proceed."); } else { crtFile = Storage.getCertificateFile(tlsServerException.getServer().getHost()); if(crtFile != null) { Optional 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\nThis may be simply due to a certificate renewal, or it may indicate a man-in-the-middle attack." + "\n\nDo you still want to proceed?", ButtonType.NO, ButtonType.YES); if(optButton.isPresent() && optButton.get() == ButtonType.YES) { if(crtFile.delete()) {