Skip to content

HostServerCertificate

Record in Oadm.Sdk.Certificates · Oadm.Sdk.dll

The answer of IServerCertificates.LoadAsync.

public sealed record HostServerCertificate(IReadOnlyList<X509Certificate2> Chain, string? Problem)

Parameters

  • Chain: The certificate with its private key, then its issuers; empty when Problem is set.
  • Problem: Why the server has no certificate it can use (“The MCP server has no certificate. Choose one in its policy.”); null when it has one.
IReadOnlyList<X509Certificate2> Chain { get; init; }

The certificate with its private key, then its issuers; empty when Problem is set.

string? Problem { get; init; }

Why the server has no certificate it can use (“The MCP server has no certificate. Choose one in its policy.”); null when it has one.