Bug 196217 - Reconnect to server using a self-signed certificate fails
Summary: Reconnect to server using a self-signed certificate fails
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: 1.2-alpha2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks: 187307
  Show dependency treegraph
 
Reported: 2009-06-12 18:18 UTC by Francis J. Lacoste
Modified: 2009-07-04 21:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francis J. Lacoste 2009-06-12 18:18:29 UTC
Version:           1.2-alpha2 (using 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2)), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.28-11-generic

I'm connecting to an IRC server using a self-signed certificate. I accepted the certificate.

If I lose the connection, konversation isn't able to reconnect automatically. (Same thing will happen if I use the Reconnect menu option).

Here is the log: 

[12:15] [Info] Server found, connecting...
[12:15] [SSL Connection Error] Could not connect to irc.canonical.com:6697 using SSL encryption. Maybe the server does not support SSL, or perhaps you have the wrong port? The host name did not match any of the valid hosts for this certificate The certificate is self-signed, and untrusted 
[12:15] [Error] Connection to Server irc.canonical.com lost: The host name did not match any of the valid hosts for this certificate.
[12:15] [Info] Looking for server irc.canonical.com:6697...
[12:15] [Info] Server found, connecting...
[12:15] [SSL Connection Error] Could not connect to irc.canonical.com:6697 using SSL encryption. Maybe the server does not support SSL, or perhaps you have the wrong port? The host name did not match any of the valid hosts for this certificate The certificate is self-signed, and untrusted 
[12:15] [Error] Connection to Server irc.canonical.com lost: The host name did not match any of the valid hosts for this certificate.
[12:15] [Info] Trying to reconnect to irc.canonical.com in 10 seconds.

Closing the tab and connecting again from the Server dialog box works.

The most annoying part of the bug is that automatic reconnection doesn't work, which is very annoying on flaky connections.
Comment 1 Johannes E. Krause 2009-07-04 02:16:48 UTC
I have the same problem, for example if i connect to the freenode test server
testnet.freenode.net:9003 via SSL

the first connection works (asks for accepting the certificate)

then typing /reconnect, the second connection attempt fails
Comment 2 Peter Simonsson 2009-07-04 21:01:07 UTC
SVN commit 991377 by psn:

Make it possible to reconnect ssl connection which uses a self-signed
certificate.
BUG:196217


 M  +3 -0      server.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=991377