Skip to content

CertificateDetails

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

What CertificateWindow shows of one certificate (texts only, no Avalonia; SDK 0.4.0): validity with a status chip (or the revocation), issued to and issued by, key and signature, version, serial number, SHA-256 fingerprint, uses and the names in it. The certificate comes from the server as a CertificateDescription.

public sealed class CertificateDetails
CertificateDetails(CertificateDescription certificate, string title, DateTime nowUtc, CertificateRevocation? revocation = null, int warningDays = 30)

Parameters

  • certificate: The certificate (CertificateDescriber.Describe on the server).
  • title: The window title (“Certificate · 10.0.0.48 · https”).
  • nowUtc: Now, for the validity.
  • revocation: The revocation when the certificate is revoked: the chip says so instead of the validity.
  • warningDays: Days before the end that count as ending soon (the device grid’s 30).
CertificateDescription Certificate { get; }

The certificate as the server described it.

ICommand CloseCommand { get; }

Close.

string Fingerprint { get; }

SHA-256 in pairs.

bool IsEndingSoon { get; }

Valid, ends within the warning days.

bool IsExpired { get; }

Its validity ended.

bool IsNotYetValid { get; }

Its validity has not started.

bool IsProblem { get; }

Shown as an error: revoked, expired or not valid yet.

bool IsRevoked { get; }

On the revocation list.

bool IsValid { get; }

Valid with more than the warning days left.

IReadOnlyList<CertificateNamePart> IssuedBy { get; }

The issuer’s parts.

IReadOnlyList<CertificateNamePart> IssuedTo { get; }

The subject’s parts.

string Key { get; }

“RSA 2048”.

string Names { get; }

One name per line (“IP 10.0.0.48”).

string SerialNumber { get; }

“7D FD 05 …”.

string Signature { get; }

“SHA-256 with RSA”.

string Title { get; }

“Certificate · 10.0.0.48 · https”.

string? UsedBy { get; init; }

What uses the certificate, one use per line (a CA’s policies and services); null: no Used by section.

string Uses { get; }

“Digital signature, Server authentication”; “None listed” without key usages.

string ValidFrom { get; }

Start of validity, local time.

string ValidUntil { get; }

End of validity, local time.

string ValidityText { get; }

“Valid, 365 days left”, “Expired 3 days ago”, “Certificate revoked on 2026-11-02 (Key compromised)”.

string Version { get; }

“3”.

event EventHandler? CloseRequested

The window closes (Close, Escape).