Problems connecting via HTTPS/SSL through own Java client

前端 未结 4 715
既然无缘
既然无缘 2020-11-27 18:13

I\'m trying to establish a connection to trackobot.com to receive some JSON data. The server only allows connections through HTTPS/SSL. Here is the code:

jav         


        
4条回答
  •  隐瞒了意图╮
    2020-11-27 18:47

    Cipher Suites: [TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, ...

    There are no AES256 cipher suites offered by you Java client.

    Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA

    Because they are not available in your application. I'm not an Java expert but either these are not available in your Java or they need to be explicitly enabled. They are needed because the server only supports AES256 ciphers:

     $ perl analyze-ssl.pl -v3 --all-ciphers trackobot.com
     ...
    * supported ciphers with SSLv23 handshake
     * TLSv1_2 ECDHE-RSA-AES256-GCM-SHA384
     * TLSv1_2 ECDHE-RSA-AES256-SHA384
     * TLSv1_2 ECDHE-RSA-AES256-SHA
     * TLSv1_2 DHE-RSA-AES256-GCM-SHA384
     * TLSv1_2 DHE-RSA-AES256-SHA256
     * TLSv1_2 DHE-RSA-AES256-SHA
    

    It might be that the version of Java you use has no support for AES256 because of export regulations, see https://knowledge.safe.com/articles/Error_Unexpected_Behavior/Enabling-AES256-in-the-Java-Runtime-Environment-for-Single-Sign-On

提交回复
热议问题