Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: SSL client program Date: Sat, 14 May 2011 21:23:39 +0200 Organization: A noiseless patient Spider Lines: 28 Message-ID: References: <3af63731-b09e-44ff-bf37-1ffebdf80f60@o7g2000vbn.googlegroups.com> <15a44075-786e-4a37-862f-c37171ab1b2f@c26g2000vbq.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 14 May 2011 19:23:42 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="4tmwzJBImrnDXpMfMJhjUw"; logging-data="10474"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+y5d/7J17OsRZjcetNivjs" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <15a44075-786e-4a37-862f-c37171ab1b2f@c26g2000vbq.googlegroups.com> Cancel-Lock: sha1:9M0+9gRLq2sQrB1KRpWuXcTqpC4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4085 On 14/05/2011 18:48, Stone allegedly wrote: > You mentioned: >> So the problem appears to >> be between what your Java program sends and what your C++ daemon >> expects, not between what your Java program sends and OpenSSL, as I had >> surmised. > > Does it mean that in Java code should be someone encoded message for C+ > + daemon? (Please don't quote signatures) No, it means that your C++ daemon doesn't understand the SSL version Java is talking to it with. > I have write down to my code your Java code and result of > SSLContext.getInstance("TLS").getClass().getName() is > "javax.net.ssl.SSLContext" Sorry, my mistake. You need to have a look at: SSLContext.getInstance( [protocol] ).getProvider(); If it prints something with "SunJSSE", then you have the default one. -- DF. An escaped convict once said to me: "Alcatraz is the place to be"