diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-15 03:21:03 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-15 03:21:03 +0200 |
commit | 12c2b2a9d724edff6499caad63997bb8cef8f4a4 (patch) | |
tree | 54e2b8a260ca5593daf5317fdaee4fe72869b0e7 /main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java | |
parent | 841eba827134eb09bb647731981fb9fe776bec8e (diff) |
Add log message for unsupported key encryption
Diffstat (limited to 'main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java b/main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java index 04848f93..c8e69414 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java +++ b/main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java @@ -474,10 +474,13 @@ public class VpnStatus { } - public static void checkWeakMD(String msg) { + public static void addExtraHints(String msg) { if ((msg.endsWith("md too weak") && msg.startsWith("OpenSSL: error")) || msg.contains("error:140AB18E") || msg.contains("SSL_CA_MD_TOO_WEAK") || (msg.contains("ca md too weak"))) logError("OpenSSL reported a certificate with a weak hash, please see the in app FAQ about weak hashes."); + if ((msg.contains("digital envelope routines::unsupported"))) + logError("The encryption method of your private keys/pkcs12 might be outdated and you probably need to enable " + + "the OpenSSL legacy provider to be able to use this profile."); } public static synchronized void updateByteCount(long in, long out) { |