PDComm.OpcUa.ServerOptions
Class
Endpoint, identity, trust and capacity options for Server.Create.
public sealed class ServerOptionsThe server is secure-only unless ServerOptions.AllowNone is set, and trusts only the one client certificate in ServerOptions.TrustedClientDer. URIs, the endpoint URL and names are limited to 4096 bytes; certificates and keys to 64 KiB. The identity and trust inputs are copied, so you can clear them after creation.
Members
ServerOptions
Constructor
Initializes a new instance with default values.
public ServerOptions()AllowNone
Property
Gets whether the server also offers an endpoint without security; default false.
public bool AllowNone { get; init; }ApplicationUri
Property
Gets the server's application URI; default urn:pdcomm:opcua:server.
public string ApplicationUri { get; init; }CertificateDer
Property
Gets the server's application instance certificate, DER-encoded.
public byte[] CertificateDer { get; init; }Endpoint
Property
Gets the endpoint URL that the server advertises; default opc.tcp://localhost:4840/pdcomm. With port 0 the advertised endpoints use the port actually bound.
public string Endpoint { get; init; }MaxConnections
Property
Gets the largest number of concurrent TCP connections; default 33.
public uint MaxConnections { get; init; }MaxSessions
Property
Gets the largest number of concurrent sessions; default 32.
public uint MaxSessions { get; init; }PrivateKeyPem
Property
Gets the private key of ServerOptions.CertificateDer, PEM-encoded.
public byte[] PrivateKeyPem { get; init; }TrustedClientDer
Property
Gets the one client certificate to trust explicitly, DER-encoded; empty for none.
public byte[] TrustedClientDer { get; init; }