Secure Chat and Client Authentication
Michael McGrady
mmcgrady at topiatechnology.com
Wed Sep 16 06:33:30 EDT 2009
Can anyone give a short description of what it would take to
authenticate the clients in the chat example?
Mike McGrady
Sep 16, 2009 3:31:01 AM
org.jboss.netty.example.securechat.SecureChatServerHandler
handleUpstream
INFO: [id: 0x004845aa, /127.0.0.1:49492 => /127.0.0.1:8080] OPEN
Sep 16, 2009 3:31:01 AM
org.jboss.netty.example.securechat.SecureChatServerHandler
handleUpstream
INFO: [id: 0x004845aa, /127.0.0.1:49492 => /127.0.0.1:8080] BOUND: /
127.0.0.1:8080
Sep 16, 2009 3:31:01 AM
org.jboss.netty.example.securechat.SecureChatServerHandler
handleUpstream
INFO: [id: 0x004845aa, /127.0.0.1:49492 => /127.0.0.1:8080]
CONNECTED: /127.0.0.1:49492
SslHandler: org.jboss.netty.handler.ssl.SslHandler at f2ea42
HandshakeStatus: NOT_HANDSHAKING
SSLSession: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at
com
.sun
.net
.ssl
.internal.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:
345)
at org.jboss.netty.example.securechat.SecureChatServerHandler
$Greeter.operationComplete(SecureChatServerHandler.java:147)
at
org
.jboss
.netty
.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:
366)
at
org
.jboss
.netty
.channel
.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:352)
at
org
.jboss
.netty
.channel.DefaultChannelFuture.setSuccess(DefaultChannelFuture.java:303)
at
org
.jboss
.netty.handler.ssl.SslHandler.setHandshakeSuccess(SslHandler.java:844)
at
org.jboss.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:
689)
at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:761)
at org.jboss.netty.handler.ssl.SslHandler.decode(SslHandler.java:477)
at
org
.jboss
.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:
282)
at
org
.jboss
.netty
.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:216)
at
org
.jboss
.netty
.channel
.SimpleChannelUpstreamHandler
.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at
org
.jboss
.netty
.channel
.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
at
org
.jboss
.netty
.channel
.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:555)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:
345)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:
332)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:
323)
at
org
.jboss
.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:
275)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
at
org
.jboss
.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:101)
at
org
.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:
46)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:651)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:676)
at java.lang.Thread.run(Thread.java:613)
[
[
Version: V3
Subject: CN=securechat.example.netty.gleamynode.net, OU=Example
Authors, O=The Netty Project, L=Seongnam-si, ST=Kyunggi-do, C=KR
Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5
Key: Sun RSA public key, 512 bits
modulus:
10259495252599146644914486716543244598555751312408550259415140395622081626185098211088365103033400924805882962317176720977859535687420891679995111486562239
public exponent: 65537
Validity: [From: Wed Jun 18 22:41:38 PDT 2008,
To: Fri Nov 23 21:41:38 PST 2187]
Issuer: CN=securechat.example.netty.gleamynode.net, OU=Example
Authors, O=The Netty Project, L=Seongnam-si, ST=Kyunggi-do, C=KR
SerialNumber: [ 4859f192]
]
Algorithm: [SHA1withRSA]
Signature:
0000: 65 6C 30 01 C2 8E 3E CB B3 77 48 E9 66 61 9A 40
el0...>..wH.fa.@
0010: 86 AF F6 03 EB BA 6A F2 FD E2 AF 36 5E 7B AA 22 ......j....
6^.."
0020: 04 DD 2C 20 C4 FC DD D0 82 20 1C 3D D7 9E 5E
5C .., ..... .=..^\
0030: 92 5A 76 71 28 F5 07 7D A2 81 BA 77 9F 2A D9
44 .Zvq(......w.*.D
]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090916/f8a735db/attachment-0001.html
More information about the netty-users
mailing list