From: Romek Szczesniak Date: 2009-03-17T00:52:35+09:00 Subject: Re: SSLServer crashes when non-essl telnet connection is made Hi, Before doing this in ruby, it might be better to make sure all is working ok. I recommend you looking at stunnel (http://www.stunnel.org) to create a simple SSL tunnel to test your certificate and network is setup correctly for SSL. Then dive into doing it in Ruby OpenSSL. You might also want to look at my sslplaypen (http://rubyforge.org/ projects/sslplaypen/) for some example code on what Ruby can do (and can't) with OpenSSL as the manuals are not good here. Kind regards Romek On Mar 16, 4:42 am, Michael Linfield wrote: > > Can you please clarify and be more specific in your suggestion as to the > > specifics in a certificate that might be causing the problem? > > Well, generally speaking, telnet protocol by default doesn't use SSL; > basically not supporting SSL certs. Then later down the road came the > telnet-ssl client. Telnet-SSL uses SSL auth and encryption when the > responding server uses it. However, if the responding server does NOT > use SSL then the client will revert back to the standard (non-ssl) > protocol. > > With that said this leads me to believe that telnet is crashing, or > rather..error-ing out, because the certs you are using are not > compatible with basic telnet services. > > So how you might go about resolving this conflict is run the cert error > through a begin/rescue block. In rescue you would change the cert to a > standard telnet one. > > Hope this helps, feel free to ask otherwise - > > Regards, > > - Mac > > -- > Posted viahttp://www.ruby-forum.com/.