dnp3 (.NET API) 1.5.2
Loading...
Searching...
No Matches
dnp3.TlsServerConfig Class Reference

TLS server configuration More...

Public Member Functions

TlsServerConfig WithDnsName (string value)
 Subject name which is verified in the presented client certificate, from the SAN extension or in the common name field. More...
 
TlsServerConfig WithPeerCertPath (string value)
 Path to the PEM-encoded certificate of the peer More...
 
TlsServerConfig WithLocalCertPath (string value)
 Path to the PEM-encoded local certificate More...
 
TlsServerConfig WithPrivateKeyPath (string value)
 Path to the PEM-encoded private key More...
 
TlsServerConfig WithPassword (string value)
 Optional password if the private key file is encrypted More...
 
TlsServerConfig WithMinTlsVersion (MinTlsVersion value)
 Minimum TLS version allowed More...
 
TlsServerConfig WithCertificateMode (CertificateMode value)
 Certificate validation mode More...
 
TlsServerConfig WithAllowClientNameWildcard (bool value)
 If set to true, a '*' may be used for TlsServerConfig.DnsName to allow any authenticated client to connect More...
 
 TlsServerConfig (string dnsName, string peerCertPath, string localCertPath, string privateKeyPath, string password)
 construct the configuration with defaults More...
 

Public Attributes

string DnsName
 Subject name which is verified in the presented client certificate, from the SAN extension or in the common name field. More...
 
string PeerCertPath
 Path to the PEM-encoded certificate of the peer More...
 
string LocalCertPath
 Path to the PEM-encoded local certificate More...
 
string PrivateKeyPath
 Path to the PEM-encoded private key More...
 
string Password
 Optional password if the private key file is encrypted More...
 
MinTlsVersion MinTlsVersion
 Minimum TLS version allowed More...
 
CertificateMode CertificateMode
 Certificate validation mode More...
 
bool AllowClientNameWildcard
 If set to true, a '*' may be used for TlsServerConfig.DnsName to allow any authenticated client to connect More...
 

Detailed Description

TLS server configuration

Constructor & Destructor Documentation

◆ TlsServerConfig()

dnp3.TlsServerConfig.TlsServerConfig ( string  dnsName,
string  peerCertPath,
string  localCertPath,
string  privateKeyPath,
string  password 
)
inline

construct the configuration with defaults

Default values:

Parameters
dnsNameSubject name which is verified in the presented client certificate, from the SAN extension or in the common name field.
peerCertPathPath to the PEM-encoded certificate of the peer
localCertPathPath to the PEM-encoded local certificate
privateKeyPathPath to the PEM-encoded private key
passwordOptional password if the private key file is encrypted

Member Function Documentation

◆ WithAllowClientNameWildcard()

TlsServerConfig dnp3.TlsServerConfig.WithAllowClientNameWildcard ( bool  value)
inline

If set to true, a '*' may be used for TlsServerConfig.DnsName to allow any authenticated client to connect

◆ WithCertificateMode()

TlsServerConfig dnp3.TlsServerConfig.WithCertificateMode ( CertificateMode  value)
inline

Certificate validation mode

◆ WithDnsName()

TlsServerConfig dnp3.TlsServerConfig.WithDnsName ( string  value)
inline

Subject name which is verified in the presented client certificate, from the SAN extension or in the common name field.

Warning: This argument is only used when used with CertificateMode.AuthorityBased

◆ WithLocalCertPath()

TlsServerConfig dnp3.TlsServerConfig.WithLocalCertPath ( string  value)
inline

Path to the PEM-encoded local certificate

◆ WithMinTlsVersion()

TlsServerConfig dnp3.TlsServerConfig.WithMinTlsVersion ( MinTlsVersion  value)
inline

Minimum TLS version allowed

◆ WithPassword()

TlsServerConfig dnp3.TlsServerConfig.WithPassword ( string  value)
inline

Optional password if the private key file is encrypted

Only PKCS#8 encrypted files are supported.

Pass empty string if the file is not encrypted.

◆ WithPeerCertPath()

TlsServerConfig dnp3.TlsServerConfig.WithPeerCertPath ( string  value)
inline

Path to the PEM-encoded certificate of the peer

◆ WithPrivateKeyPath()

TlsServerConfig dnp3.TlsServerConfig.WithPrivateKeyPath ( string  value)
inline

Path to the PEM-encoded private key

Member Data Documentation

◆ AllowClientNameWildcard

bool dnp3.TlsServerConfig.AllowClientNameWildcard

If set to true, a '*' may be used for TlsServerConfig.DnsName to allow any authenticated client to connect

◆ CertificateMode

CertificateMode dnp3.TlsServerConfig.CertificateMode

Certificate validation mode

◆ DnsName

string dnp3.TlsServerConfig.DnsName

Subject name which is verified in the presented client certificate, from the SAN extension or in the common name field.

Warning: This argument is only used when used with CertificateMode.AuthorityBased

◆ LocalCertPath

string dnp3.TlsServerConfig.LocalCertPath

Path to the PEM-encoded local certificate

◆ MinTlsVersion

MinTlsVersion dnp3.TlsServerConfig.MinTlsVersion

Minimum TLS version allowed

◆ Password

string dnp3.TlsServerConfig.Password

Optional password if the private key file is encrypted

Only PKCS#8 encrypted files are supported.

Pass empty string if the file is not encrypted.

◆ PeerCertPath

string dnp3.TlsServerConfig.PeerCertPath

Path to the PEM-encoded certificate of the peer

◆ PrivateKeyPath

string dnp3.TlsServerConfig.PrivateKeyPath

Path to the PEM-encoded private key


The documentation for this class was generated from the following file: