Class PemCertificate
A TLS certificate from PEM files, read again when either file changes, so renewals need no restart.
Inherited Members
Namespace: Uniform.Stun.Hosting
Assembly: Uniform.Stun.Hosting.dll
Syntax
public sealed class PemCertificate
Constructors
| Edit this page View SourcePemCertificate(string, string)
A TLS certificate from PEM files, read again when either file changes, so renewals need no restart.
Declaration
public PemCertificate(string certificatePath, string keyPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | certificatePath | PEM file of the certificate chain; |
| string | keyPath | PEM file of the private key. |
Methods
| Edit this page View SourceGet()
Return the certificate with its key, reading the files when they changed; throw when they cannot be read.
Declaration
public X509Certificate2 Get()
Returns
| Type | Description |
|---|---|
| X509Certificate2 |