Re: [Asterisk-java-users] Trying to Log in Astmanproxy SSL
Brought to you by:
srt
From: Sebastian G. <sc...@gm...> - 2012-12-27 02:05:32
|
Stefan, I´ve move forward some more, the thing is the same port is for both SSL and no SSL connection in astmanproxy, it can handle encrypted and unencrypted requests. so I configured astmanproxy to only accept ssl connections. Other important thing is to add to my app to accept the self signed certificate so I used a method to accept them all: (https://devcentral.f5.com/blogs/us/ssl-trust-provider-for-java#.UNs1cqX747l) so with this I was able to connect from MAC OS X correctly to the proxy with the ssl connection So I get in the debug of the proxy something like this: Dec 26 15:40:52: Received a SSL request Dec 26 15:40:52: is_encrypted: 1 Dec 26 15:40:52: ssl_addon: Connection accepted Dec 26 15:40:52: Connection received from 192.168.99.13 Dec 26 15:40:52: Set 192.168.99.13 input format to standard Dec 26 15:40:52: Set 192.168.99.13 output format to standard Dec 26 15:40:52: calling standard_read... Dec 26 15:40:52: Received 60 bytes from SSL socket Dec 26 15:40:52: Returning standard block of 3 lines, res 1 Dec 26 15:40:52: standard_read result = 1 and everything works fine. But now the issues is that if I use Windows as the client I get: Dec 26 15:45:52: is_encrypted: 0 with the same code….. I will try to get some pcap file to analize whats the difference between them, maybe the initial handshake??. Any idea? thanks! On Dec 26, 2012, at 11:20 PM, Stefan Reuter <ste...@re...> wrote: > On 12/26/2012 05:47 PM, Sebastian Gutierrez wrote: >> now I´m seeing this: >> >> Terminating reader thread: Unrecognized SSL message, plaintext connection? > > Do you use the correct SSL port? The error message sounds as if you are > connecting to a non-SSL port. > > =Stefan > > >> >> thanks >> >> >> Begin forwarded message: >> >>> *From: *Sebastian Gutierrez <sc...@gm... <mailto:sc...@gm...>> >>> *Subject: **Trying to Log in Astmanproxy SSL* >>> *Date: *December 18, 2012 3:08:06 PM GMT-02:00 >>> *To: *"ast...@li... >>> <mailto:ast...@li...>" >>> <ast...@li... >>> <mailto:ast...@li...>> >>> >>> Hi, >>> >>> >>> I´m trying to change my connection from plain text to SSL, connection >>> to Astmanproxy like this, >>> >>> I changed the ManagerConnectionFactory factory = new >>> ManagerConnectionFactory(Config.AsteriskIP, Config.AsteriskPort, >>> Config.Agent, Config.Secret); >>> managerConnection = factory.createSecureManagerConnection(); >>> >>> to have an SSL conecction, using the default astmanproxy certificate >>> >>> and I can see: >>> >>> >>> 2012-12-18 02:56:36.766 - [14] - [ManagerConnectionImpl.connect] - >>> [INFO] - Connecting to 192.168.99.249:4530 >>> 2012-12-18 02:56:38.477 - [19] - [ManagerReaderImpl.run] - [INFO] - >>> Terminating reader thread: Remote host closed connection during handshake >>> 2012-12-18 02:56:39.004 - [14] - [ManagerConnectionImpl.disconnect] - >>> [INFO] - Closing socket. >>> 2012-12-18 02:56:39.009 - [14] - [AstConnection.login] - [SEVERE] - >>> javax.net.ssl.SSLHandshakeException: Remote host closed connection >>> during handshake >>> >>> Java Result: 255 >>> >>> >>> On astmanproxy debug: Dec 18 14:55:49: is_encrypted: 0 >>> >>> >>> any idea??? >>> >>> >>> >>> thanks >>> >>> best regards. >>> >> >> >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> >> >> >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > -- > reuter network consulting > Im Zollhafen 14 > 50678 Koeln > Germany > Telefon: +49 251 530289-20 > Telefax: +49 251 530289-29 > E-Mail: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |