diff options
Diffstat (limited to 'src/main/ui/MainScreen.java')
-rw-r--r-- | src/main/ui/MainScreen.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/ui/MainScreen.java b/src/main/ui/MainScreen.java index b6e4372..2eaf882 100644 --- a/src/main/ui/MainScreen.java +++ b/src/main/ui/MainScreen.java @@ -86,7 +86,7 @@ public class MainScreen implements UIHandler { System.out.println("Usage: issue <template>"); return; } - Template tmp = session.findTemplate(args[1], true); + Template tmp = session.getCa().findTemplate(args[1], true); if (tmp == null) { System.out.println("Cannot find the template specified"); return; @@ -138,7 +138,6 @@ public class MainScreen implements UIHandler { session.getCa().revoke(new RevokedCertificate(ASN1Object.TAG_SEQUENCE, null, c.getCertificate().getSerialNumber(), new UtcTime(UtcTime.TAG, null, ZonedDateTime.now(ZoneId.of("UTC"))), reason)); - session.log("A certificate has been revoked."); } catch (IllegalArgumentException ignored) { System.out.println("Illegal serial number or reason"); } @@ -179,7 +178,6 @@ public class MainScreen implements UIHandler { } try { System.out.println(Utils.toPEM(session.getCa().signCRL().encodeDER(), "X509 CRL")); - session.log("A CRL was signed"); } catch (Throwable e) { System.out.println(e.getMessage()); } |