// Request (confirm step) a new certificate public ActionResult RequestConfirm(Models.RequestCertificateModel model) { if (model == null) { model = new Models.RequestCertificateModel(); } model.RequestedBy = User.Identity.Name; CA.Common.CA c = new Common.CA(); string dn = string.Empty; int keyLength = 0; string hashAlgo = string.Empty; c.DecodeCSR(model.CSR, out dn, out keyLength, out hashAlgo); model.DistingishedName = dn; model.PublicKeyLength = keyLength; model.HashAlgorithm = hashAlgo; return View(model); }
public ActionResult RequestNew(Models.RequestCertificateModel model) { if (model == null) { model = new Models.RequestCertificateModel(); } model.RequestedBy = User.Identity.Name; return View(model); }