SSLException: HelloRequest followed by an unexpected handshake message

前端 未结 4 1552
慢半拍i
慢半拍i 2021-02-14 03:18

I\'m trying to connect to a webservice over SSL using Apache Commons HttpClient 3.1, using this:

String url = \"https://archprod.service.eogs.dk/cvronline/esb/Le         


        
相关标签:
4条回答
  • 2021-02-14 03:24

    We have a webstart application which fails because of this issue. The command-line version is working again when adding :

    java.lang.System.setProperty("sun.security.ssl.allowUnsafeRenegotiation", "true");

    But the webstart version seems to ignore this, and until now we haven't foud a way to set this property in the webstart version.

    0 讨论(0)
  • 2021-02-14 03:24

    Same issue as here, I think: http://forums.sun.com/thread.jspa?threadID=5435426

    At least the solution works for this issue, too: add "-Dsun.security.ssl.allowUnsafeRenegotiation=true"

    0 讨论(0)
  • 2021-02-14 03:40

    Just to add some updates to this - Oracle has this KB that discusses the problem.

    We've come across with with JRE 1.6.0_20 on Windows 7, but upgrading to 1.6.0_25 has resovled the problem (I realise there are later versions, however in the interests of software testing we're testing with a range of versions - this is the earliest we've been able to lay our hands on).

    0 讨论(0)
  • 2021-02-14 03:45

    At least the solution works for this issue, too: add "-Dsun.security.ssl.allowUnsafeRenegotiation=true"

    Thank you very very very much for that! I was trying to use maven deploy through an SSL connection, using certificates and I had the same exception. Now it is solved. Thanks again!

    0 讨论(0)
提交回复
热议问题