private static void IssueCertificate(string[] args) { if (args.Length < 3) { ShowHelp(); return; } var certificateAuthority = new CertificateAuthority(); var certificateConfiguration = ConfigurationData.GetAuthorityByName(args[1]); certificateAuthority.IssueCertificate(certificateConfiguration, args[2], args[3]); }
private static void SubmitCertificateRequest(string[] args) { if (args.Length < 3) { ShowHelp(); return; } var certificateAuthorityConfiguration = ConfigurationData.GetAuthorityByName(args[1]); new CertificateAuthority().SubmitCertificateRequest(certificateAuthorityConfiguration, args[2]); }