gpt4 book ai didi

java - 将密码套件 TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 添加到 Java 7

转载 作者:行者123 更新时间:2023-11-30 03:12:00 25 4
gpt4 key购买 nike

我想在 Java 7 中将 TLSv1.2TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 结合使用。

我已将 -Ddeployment.security.TLSv1.2=true 添加到虚拟机参数中,我想知道如何添加上述密码套件。

最佳答案

提示由@ dave_thompson_085提供.

Java 7 JSSE (the SSL/TLS provider) does not implement GCM ciphersuites, only Java 8 does. A thirdparty provider like BouncyCastle might. Also remember all Oracle/Sun JREs support AES-256 suites (and more-than-128-bit symmetric encryption generally) only if the JCE Unlimited Strength option is installed.

<小时/>

I said (Java8 OR MAYBE BC) AND (UnlimitedStrength OR NOT Oracle -- or more exactly openjdk). I thought I recalled BCprov doing SSL/TLS but on checking it's only the lightweight API, so unless you rewrite your code (and any involved libraries) you need (Java8 to get GCM) AND (UnlimitedStrength OR openjdk to get AES256).

关于java - 将密码套件 TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 添加到 Java 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33439478/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com