We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b40eec commit 9175072Copy full SHA for 9175072
bedrock/bedrock-common/src/main/java/com/nukkitx/protocol/bedrock/util/EncryptionUtils.java
@@ -40,6 +40,11 @@ public class EncryptionUtils {
40
private static final KeyPairGenerator KEY_PAIR_GEN;
41
42
static {
43
+ // DO NOT REMOVE THIS
44
+ // Since Java 8u231, secp384r1 is deprecated and will throw an exception.
45
+ String namedGroups = System.getProperty("jdk.tls.namedGroups");
46
+ System.setProperty("jdk.tls.namedGroups", namedGroups.isEmpty() ? "secp384r1" : ", secp384r1");
47
+
48
try {
49
KEY_PAIR_GEN = KeyPairGenerator.getInstance("EC");
50
KEY_PAIR_GEN.initialize(new ECGenParameterSpec("secp384r1"));
0 commit comments