CertificateRevocation
Record in Oadm.Sdk.Certificates · Oadm.Sdk.dll
One revoked certificate (SDK 0.4.0): kept while the certificate could still be valid.
public sealed record CertificateRevocation(string SerialNumber, DateTime RevokedUtc, RevocationReason Reason, string UserName)Parameters
SerialNumber: The serial number (CertificateSerials.Normalize).RevokedUtc: When it was revoked.Reason: Why.UserName: Who revoked it.
Properties
Section titled “Properties”DeviceId
Section titled “DeviceId”Guid? DeviceId { get; init; }The device the certificate was issued for; null when not known (a serial the list did not hold).
NotAfterUtc
Section titled “NotAfterUtc”DateTime NotAfterUtc { get; init; }The end of the certificate’s validity: the entry leaves the list after it.
Reason
Section titled “Reason”RevocationReason Reason { get; init; }Why.
RevokedUtc
Section titled “RevokedUtc”DateTime RevokedUtc { get; init; }When it was revoked.
SerialNumber
Section titled “SerialNumber”string SerialNumber { get; init; }The serial number (CertificateSerials.Normalize).
UserName
Section titled “UserName”string UserName { get; init; }Who revoked it.
Methods
Section titled “Methods”Describe
Section titled “Describe”string Describe()“Certificate revoked on 2026-11-02 (Key compromised)”: the text of a refusal (802.1X log, EST).
ReasonText
Section titled “ReasonText”static string ReasonText(RevocationReason reason)“Key compromised”, “Device replaced”, “Device removed”, “Replaced by a newer certificate”, “Other”.