2017-10-17 22:28:43 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2017-10-17 22:28:43 +02:00
|
|
|
|
public class Certificate
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// PEM encoded data
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Data { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Fingerprint of the certificate
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Fingerprint { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Issuer principal
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public CertificatePrincipal Issuer { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Issuer certificate (if not self-signed)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Certificate IssuerCert { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Issuer's Common Name
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string IssuerName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Hex value represented string
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string SerialNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Subject principal
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public CertificatePrincipal Subject { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Subject's Common Name
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string SubjectName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// End date of the certificate being valid in seconds
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int ValidExpiry { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Start date of the certificate being valid in seconds
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int ValidStart { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|