Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin3!goblin.stu.neva.ru!exi-transit.telstra.net!news.telstra.net!exi-spool.telstra.net!exi-reader.telstra.net!not-for-mail Date: Tue, 17 May 2011 09:33:59 +1000 From: Esmond Pitt Reply-To: not.esmond.pitt@not.bigpond.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: SSL client program References: <3af63731-b09e-44ff-bf37-1ffebdf80f60@o7g2000vbn.googlegroups.com> <4dd0ca31$0$45422$c30e37c6@exi-reader.telstra.net> <03ea3315-bf04-48ef-b659-d2175a6d7a45@c26g2000vbq.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 19 Message-ID: <4dd1b468$0$45428$c30e37c6@exi-reader.telstra.net> NNTP-Posting-Host: 120.151.14.51 X-Trace: 1305588840 exi-reader.telstra.net 45428 120.151.14.51:35436 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4179 On 16/05/2011 10:22 PM, Stone wrote: > Connection was established successfully Lucky guess on my part. > but when I am writting > something from C++ daemon to Java applet that I see those message: > 25280:error:140940F6:SSL routines:SSL3_READ_BYTES:unknown alert > type:s3_pkt.c:1063: Can you run the Java client with -Djavax.net.debug=ssl,handshake,record and post the output here? It should show what alert is being generated. > SSL_write(ssl,message,sizeof(message)); Is your Java client really going to understand a null-terminated 'C' string? You need to sort out this part of your protocol: in general that's not going to work unless you can completely avoid null characters inside your data.