public IActionResult Register([FromBody] CmsRequest loginRequest) { var cert = _pkiManager.IssueCertificate(loginRequest.Cms, new DemoBankExtensionBuilder()); var pem = PemHelper.ToPem("CERTIFICATE", cert.GetEncoded()); return(Ok(pem)); }
public IActionResult Register([FromBody] CmsRequest req) { var cert = _pkiManager.IssueCertificate(req.Cms, new AllReqExtensionBuilder(req.CrlLink, req.RootCertLink)); var pem = PemHelper.ToPem("CERTIFICATE", cert.GetEncoded()); return(Ok(pem)); }