mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 17:33:02 +08:00
Forgot the toCharArray
This commit is contained in:
parent
2045dd2832
commit
bed3181252
@ -186,9 +186,9 @@ public final class DispatchServer {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Grasscutter.getLogger().warn("[Dispatch] Unable to load keystore. Using default keystore password...");
|
Grasscutter.getLogger().warn("[Dispatch] Unable to load keystore. Using default keystore password...");
|
||||||
KeyStore ks = KeyStore.getInstance("PKCS12");
|
KeyStore ks = KeyStore.getInstance("PKCS12");
|
||||||
ks.load(fis, "123456");
|
ks.load(fis, "123456".toCharArray());
|
||||||
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
|
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
|
||||||
kmf.init(ks, "123456");
|
kmf.init(ks, "123456".toCharArray());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Grasscutter.getLogger().warn("[Dispatch] Error while loading keystore!");
|
Grasscutter.getLogger().warn("[Dispatch] Error while loading keystore!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user