SignCertificateRequest.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using EVCB_OCPP.Packet20.DataTypes.EnumTypes;
  2. using Newtonsoft.Json;
  3. using Newtonsoft.Json.Converters;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace EVCB_OCPP.Packet20.Messages
  11. {
  12. public class SignCertificateRequest
  13. {
  14. /// <summary>
  15. /// The Charging Station SHALL send the public
  16. /// key in form of a Certificate Signing Request(CSR) as
  17. ///described in RFC 2986 [22] using the
  18. ///SignCertificateRequest message.
  19. /// </summary>
  20. [Required]
  21. [StringLength(5500, MinimumLength = 0)]
  22. public string Csr { set; get; }
  23. /// <summary>
  24. /// Indicates the type of certificate that is to be
  25. ///signed.When omitted the certificate is to be used for
  26. ///both the 15118 connection(if implemented) and the
  27. ///Charging Station to CSMS connection
  28. /// </summary>
  29. [JsonConverter(typeof(StringEnumConverter))]
  30. public CertificateSigningUseEnumType CertificateType { set; get; }
  31. }
  32. }