public IActionResult AddCertificate()
 {
     IActionResult result = null;
     string rootUrl = Request.GetRootUrl();
     Certificate response = new Certificate();
     response.CertificateFormat = "PEM";
     response.RawCertificate = BusinessLogic.BusinessLogicFactory.Identities.CreateCertificate(User.GetOrganisationID());
     result = Request.GetObjectResult(response, System.Net.HttpStatusCode.Created);
     return result;
 }
Ejemplo n.º 2
0
 public Bootstrap(Model.BootstrapServer item)
 {
     Url = item.Url;
     if (item.ServerCertificate != null)
     {
         ServerCertificate = new Certificate(item.ServerCertificate);
     }
     Model.PSKIdentity pskIdentity = item.GetPSKIdentity();
     if (pskIdentity != null)
     {
         ServerIdentity = new PSKIdentity(pskIdentity);
     }
 }