diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java b/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java index c9bf0b93..be573f08 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java @@ -72,7 +72,7 @@ public static void main(String[] args) throws Exception { { LauncherTrustManager.CheckClassResult result = certificateManager.checkClass(LaunchServer.class); if (result.type == LauncherTrustManager.CheckClassResultType.SUCCESS) { - logger.info("LaunchServer signed by {}", result.endCertificate.getSubjectDN().getName()); + logger.info("LaunchServer signed by {}", result.endCertificate.getSubjectX500Principal().getName()); } else if (result.type == LauncherTrustManager.CheckClassResultType.NOT_SIGNED) { // None } else { diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/command/modules/ModulesCommand.java b/LaunchServer/src/main/java/pro/gravit/launchserver/command/modules/ModulesCommand.java index 4e4ed5b4..d76c0b59 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/command/modules/ModulesCommand.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/command/modules/ModulesCommand.java @@ -47,11 +47,11 @@ public void invoke(String... args) { private void printCheckStatusInfo(LauncherTrustManager.CheckClassResult checkStatus) { if (checkStatus != null && checkStatus.endCertificate != null) { X509Certificate cert = checkStatus.endCertificate; - logger.info("[MODULE CERT] Module signer: {}", cert.getSubjectDN().getName()); + logger.info("[MODULE CERT] Module signer: {}", cert.getSubjectX500Principal().getName()); } if (checkStatus != null && checkStatus.rootCertificate != null) { X509Certificate cert = checkStatus.rootCertificate; - logger.info("[MODULE CERT] Module signer CA: {}", cert.getSubjectDN().getName()); + logger.info("[MODULE CERT] Module signer CA: {}", cert.getSubjectX500Principal().getName()); } } }