Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: HTTP
-
Labels:None
-
Number of attachments :
Description
I have a problem with the Jetty 6 SslSocketConnector. I am trying to make a http connector that uses SSL, configuration and everything works fine, the server sends the client a certificate also great...everything fine till now, but now I want the client to authenticate itself. The client now sends an invalid certificate and I get a error:
java.lang.IllegalStateException: no client auth
at org.mortbay.jetty.security.SslSocketConnector.customize(SslSocketConnectorjava:361)
at org.mortbay.jetty.HttpConnection.doHandler(HttpConnection.java:362)
at org.mortbay.jetty.HttpConnection.access$1600(HttpConnection.java:46)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:612)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:485)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:194)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:298)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:153)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:412)
Ok this error is ok, but the the connection is not droped. The http request is forwarded and served.
A sanity check has been added - just in case the JSSE impl lets the connection progress without a cert