[smuxi/stable] Engine-IRC: link Smuxi FAQ for SSL/TLS certificate error messages



commit d7c7508ce478b7074957a8aac8f779bf3d4f7d10
Author: Mirco Bauer <meebey meebey net>
Date:   Tue Dec 15 16:22:03 2015 +0100

    Engine-IRC: link Smuxi FAQ for SSL/TLS certificate error messages

 src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs 
b/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs
index 0b2584d..0f08193 100644
--- a/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs
+++ b/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs
@@ -452,6 +452,16 @@ namespace Smuxi.Engine
                 builder.AppendEventPrefix();
                 builder.AppendText(_("Connection failed! Reason: "));
                 builder.AppendText(ex.Message);
+                if (ex.InnerException is IOException &&
+                    ex.InnerException.InnerException != null &&
+                    ex.InnerException.InnerException.GetType().FullName == 
"Mono.Security.Protocol.Tls.TlsException") {
+                    // this is a CA / certificate issue
+                    builder.AppendSpace();
+                    builder.AppendUrl(
+                        "https://smuxi.im/faq/troubleshooting/linux-tls/";,
+                        "[" + _("Open Smuxi FAQ for help") + "]"
+                    );
+                }
                 Session.AddMessageToChat(Chat, builder.ToMessage());
                 throw;
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]