From bed31812522881038b115eff36ae759d41bc2a83 Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Sun, 24 Apr 2022 04:41:06 +0200 Subject: [PATCH] Forgot the toCharArray --- .../java/emu/grasscutter/server/dispatch/DispatchServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java b/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java index c0033445b..deb4faae3 100644 --- a/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java +++ b/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java @@ -186,9 +186,9 @@ public final class DispatchServer { } catch (Exception e) { Grasscutter.getLogger().warn("[Dispatch] Unable to load keystore. Using default keystore password..."); KeyStore ks = KeyStore.getInstance("PKCS12"); - ks.load(fis, "123456"); + ks.load(fis, "123456".toCharArray()); KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); - kmf.init(ks, "123456"); + kmf.init(ks, "123456".toCharArray()); } catch (Exception e) { Grasscutter.getLogger().warn("[Dispatch] Error while loading keystore!"); }