dnp3 (.NET API) 1.1.0
dnp3.TlsServerConfig Class Reference

TLS server configuration More...

Public Member Functions

TlsServerConfig WithDnsName (string value)
 Expected name to validate in the presented certificate (only in CertificateMode.AuthorityBased mode) 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 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 (string dnsName, string peerCertPath, string localCertPath, string privateKeyPath, string password)
 construct the configuration with defaults More...
 

Public Attributes

string DnsName
 Expected name to validate in the presented certificate (only in CertificateMode.AuthorityBased mode) 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 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...
 

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
dnsNameExpected name to validate in the presented certificate (only in CertificateMode.AuthorityBased mode)
peerCertPathPath to the PEM-encoded certificate of the peer
localCertPathPath to the PEM-encoded local certificate
privateKeyPathPath to the the PEM-encoded private key
passwordOptional password if the private key file is encrypted

Member Function Documentation

◆ WithCertificateMode()

TlsServerConfig dnp3.TlsServerConfig.WithCertificateMode ( CertificateMode  value)
inline

Certificate validation mode

◆ WithDnsName()

TlsServerConfig dnp3.TlsServerConfig.WithDnsName ( string  value)
inline

Expected name to validate in the presented certificate (only in CertificateMode.AuthorityBased mode)

◆ 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 the PEM-encoded private key

Member Data Documentation

◆ CertificateMode

CertificateMode dnp3.TlsServerConfig.CertificateMode

Certificate validation mode

◆ DnsName

string dnp3.TlsServerConfig.DnsName

Expected name to validate in the presented certificate (only in CertificateMode.AuthorityBased mode)

◆ 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 the PEM-encoded private key


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