Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #4284
| From | Stone <phracek2@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: SSL client program |
| Date | 2011-05-19 01:46 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <f004fa48-77c4-411f-9082-ed2f5414e62a@n10g2000yqf.googlegroups.com> (permalink) |
| References | (3 earlier) <fb2ff79f-640c-47ad-a5b8-7462811e5cf1@y31g2000vbp.googlegroups.com> <4dd0ca31$0$45422$c30e37c6@exi-reader.telstra.net> <03ea3315-bf04-48ef-b659-d2175a6d7a45@c26g2000vbq.googlegroups.com> <ce6c02bd-5988-47a0-bd0e-ab18db444593@a26g2000vbo.googlegroups.com> <4dd1b468$0$45428$c30e37c6@exi-reader.telstra.net> |
On May 17, 1:33 am, Esmond Pitt <esmond.p...@bigpond.com> wrote: > 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. Thank you to all. All is working properly. But may be you have a some idea where can be a problem with that situation. Sometimes I am receiving following fatal error: javax.net.ssl.SSLException: Received fatal alert: unexpected_message at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) First message send to the server is OK and I am receiving proper answer but afterwards when I am trying to send next message than the follwoing error occurs. Server is run in KVM (Kernel-based Virtual Machine). What type of problem is this? For the wireshark I saw in Protocol TLSv1: - ClientHello - ServerHello, Change Cipher Spec, Finished - Application Data - Alert (Level: Fatal, Description: Unexpected Message) Best regards Petr
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
SSL client program Stone <phracek2@gmail.com> - 2011-05-13 01:09 -0700
Re: SSL client program Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-13 18:39 +0200
Re: SSL client program Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-13 18:57 +0200
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-14 01:54 -0700
Re: SSL client program Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-14 17:34 +0200
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-14 09:45 -0700
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-14 09:48 -0700
Re: SSL client program Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-14 21:23 +0200
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-14 12:34 -0700
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-14 11:35 -0700
Re: SSL client program Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-16 16:54 +1000
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-16 03:08 -0700
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-16 05:22 -0700
Re: SSL client program Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-17 09:33 +1000
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-19 01:46 -0700
Re: SSL client program Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-20 14:15 +1000
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-20 01:56 -0700
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-20 02:00 -0700
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-14 01:49 -0700
Re: SSL client program Lothar Kimmeringer <news200709@kimmeringer.de> - 2011-05-15 13:52 +0200
Re: SSL client program Stone <phracek2@gmail.com> - 2011-05-15 11:05 -0700
Re: SSL client program Lothar Kimmeringer <news200709@kimmeringer.de> - 2011-05-16 08:46 +0200
csiph-web