简体   繁体   English

SSL握手后连接被拒绝

[英]Connection refused after SSL handshake

I'm trying to connect to a WCF server that needs a client cert. 我正在尝试连接到需要客户端证书的WCF服务器。 I've imported the client cert into a JKS file locally and provided the cert location to the JAXWS client using the -Djavax.net.ssl*** options. 我已经将客户端证书导入到本地的JKS文件中,并使用-Djavax.net.ssl ***选项将证书位置提供给JAXWS客户端。 The SSL debug prints the below information before it finally gets a Connection refused exception. SSL调试在最终获得“连接被拒绝”异常之前会打印以下信息。 Apparently the handshake seems to successful but then a closeInternal(true) is called and then the exception. 显然,握手似乎成功了,但随后调用了closeInternal(true),然后调用了异常。 Any clues/ideas are much appreciated. 任何线索/想法都非常感激。 Thanks in advance. 提前致谢。

... no IV used for this cipher
main, WRITE: TLSv1 Change Cipher Spec, length = 17
*** Finished
verify_data:  { 68, 26, 22, 198, 55, 196, 10, 167, 6, 30, 206, 143 }
***
main, WRITE: TLSv1 Handshake, length = 32
main, READ: TLSv1 Change Cipher Spec, length = 17
main, READ: TLSv1 Handshake, length = 32
*** Finished
verify_data:  { 233, 31, 138, 146, 138, 210, 137, 249, 81, 126, 169, 166 }
***
%% Cached client session: [Session-3, SSL_RSA_WITH_RC4_128_MD5]
main, READ: TLSv1 Application Data, length = 469
main, called close()
main, called closeInternal(true)
main, SEND TLSv1 ALERT:  warning, description = close_notify
main, WRITE: TLSv1 Alert, length = 18
Exception in thread "main" com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.

java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect

    at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:161)
    at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:133)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:254)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:217)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:165)
    at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:93)
    at javax.xml.ws.Service.<init>(Service.java:56)
    at com.acs.echo.gen.EchoService.<init>(EchoService.java:46)
    at com.acs.echo.client.EchoClient.invokeWebService(EchoClient.java:43)
    at com.acs.echo.client.EchoClient.main(EchoClient.java:17)

The SSL handshake and TCP connection to the server are succeeding, but the retrieval of the WSDL is failing. SSL握手和与服务器的TCP连接成功,但是WSDL的检索失败。 It appears to be coming from a non-SSL host that is giving you 'connection refused', which means that nothing is listened at the port specified in the WSDL RL, or maybe an intervening firewall has vetoed the connect attempt. 它似乎来自非SSL主机,该主机给您“连接被拒绝”,这意味着在WSDL RL中指定的端口上未侦听任何内容,或者可能是中间防火墙否决了连接尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM