From 9084361a3848aa8a6085e6d6785c3452164abdd9 Mon Sep 17 00:00:00 2001 From: Gravita Date: Fri, 12 Feb 2021 20:56:55 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=97=D0=B0=D1=89=D0=B8=D1=82=D0=B0=20?= =?UTF-8?q?=D0=BE=D1=82=20=D0=B4=D1=83=D1=80=D0=B0=D0=BA=D0=B0=20(=D0=BE?= =?UTF-8?q?=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B5=20=D0=B1?= =?UTF-8?q?=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5=D0=BA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/pro/gravit/launchserver/LaunchServerStarter.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java b/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java index 0c2079d9..a8e858b4 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java @@ -61,7 +61,13 @@ public static void main(String[] args) throws Exception { Path privateKeyFile = dir.resolve("private.key"); ECPublicKey publicKey; ECPrivateKey privateKey; - Security.addProvider(new BouncyCastleProvider()); + try { + Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider"); + Security.addProvider(new BouncyCastleProvider()); + } catch (ClassNotFoundException ex) { + LogHelper.error("Library BouncyCastle not found! Is directory 'libraries' empty?"); + return; + } CertificateManager certificateManager = new CertificateManager(); try { certificateManager.readTrustStore(dir.resolve("truststore"));