2

我有一些代理 servletalt text http://img395.imageshack.us/img395/2770/capturei.png,我想建立与这个 servlet 的安全连接(图中的 con A 和 con B)(使用 SSL )。这个代理在 Maven Jetty 插件下工作。我已将码头配置为处理 ssl 请求:

 <connector implementation="org.mortbay.jetty.security.SslSocketConnector">
   <port>8443</port>
   <maxIdleTime>30000</maxIdleTime>
   <keystore>D:\Projekt\Proxy\keystore</keystore>
   <password>test</password>
   <keyPassword>test</keyPassword>
 </connector>

但是当我尝试通过这个代理(使用浏览器)时,我收到了一个异常:

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at 
com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523) at 
com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139) at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123) at 
org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:631) at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)

问题可能出在哪里,或者我该如何通过其他方式解决?

4

0 回答 0