CreateRootCaReq.cs 747 B

123456789101112131415161718
  1. using CAUtilLib;
  2. namespace CertificateAutorityServer.Model.Rest
  3. {
  4. public class CreateRootCaReq
  5. {
  6. public required string Name { get; set; }
  7. public required string CommonName { get; set; }
  8. public int Days { get; set; } = 365;
  9. public string SerialNumber { get; set; } = string.Empty;
  10. public string Country { get; set; } = string.Empty;
  11. public string State { get; set; } = string.Empty;
  12. public string OrganizationName { get; set; } = string.Empty;
  13. public HashAlgorithm Hash { get; set; } = HashAlgorithm.SHA512;
  14. public OpensslGenrsaRsa RsaKey { get; set; } = OpensslGenrsaRsa.Key4096;
  15. public string Key { get; set; } = string.Empty;
  16. }
  17. }