Example #1
0
        public IActionResult Register([FromBody] CmsRequest loginRequest)
        {
            var cert = _pkiManager.IssueCertificate(loginRequest.Cms, new DemoBankExtensionBuilder());

            var pem = PemHelper.ToPem("CERTIFICATE", cert.GetEncoded());

            return(Ok(pem));
        }
Example #2
0
        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));
        }