Class TlsCertificate
The server's HTTPS certificate from the PEM files of TlsOptions, with its intermediates, read again when the files change.
Inherited Members
Namespace: Uniform.Matrix.Server.Http
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed class TlsCertificate
Remarks
Other servers check the whole chain, so the intermediates of CertificatePath are sent too. The files are looked at once per CheckInterval at most; when a new file cannot be read, the previous certificate stays in use.
Constructors
| Edit this page View SourceTlsCertificate(IOptions<TlsOptions>, TimeProvider, ILogger<TlsCertificate>)
Create from the configured files, with ~ as the home directory; throw TlsCertificateException when they are not set or cannot be read, so a bad path stops the start.
Declaration
public TlsCertificate(IOptions<TlsOptions> options, TimeProvider time, ILogger<TlsCertificate> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptions<TlsOptions> | options | |
| TimeProvider | time | |
| ILogger<TlsCertificate> | logger |
Fields
| Edit this page View SourceCheckInterval
How often the files are looked at for changes.
Declaration
public static readonly TimeSpan CheckInterval
Field Value
| Type | Description |
|---|---|
| TimeSpan |
Properties
| Edit this page View SourceCertificate
Get the certificate itself.
Declaration
public X509Certificate2 Certificate { get; }
Property Value
| Type | Description |
|---|---|
| X509Certificate2 |
Context
Get the certificate and its chain for a TLS handshake, read again first when the files have changed.
Declaration
public SslStreamCertificateContext Context { get; }
Property Value
| Type | Description |
|---|---|
| SslStreamCertificateContext |