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

TLS client configuration More...

Public Member Functions

TlsClientConfig WithDnsName (string value)
 Subject name which is verified in the presented server certificate, from the SAN extension or in the common name field. More...
 
TlsClientConfig WithPeerCertPath (string value)
 Path to the PEM-encoded certificate of the peer More...
 
TlsClientConfig WithLocalCertPath (string value)
 Path to the PEM-encoded local certificate More...
 
TlsClientConfig WithPrivateKeyPath (string value)
 Path to the the PEM-encoded private key More...
 
TlsClientConfig WithPassword (string value)
 Optional password if the private key file is encrypted More...
 
TlsClientConfig WithMinTlsVersion (MinTlsVersion value)
 Minimum TLS version allowed More...
 
TlsClientConfig WithCertificateMode (CertificateMode value)
 Certificate validation mode More...
 
TlsClientConfig WithAllowServerNameWildcard (bool value)
 If set to true, a '*' may be used for TlsClientConfig.DnsName to bypass server name validation More...
 
 TlsClientConfig (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 server 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 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 AllowServerNameWildcard
 If set to true, a '*' may be used for TlsClientConfig.DnsName to bypass server name validation More...
 

Detailed Description

TLS client configuration

Constructor & Destructor Documentation

◆ TlsClientConfig()

dnp3.TlsClientConfig.TlsClientConfig ( 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 server 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 the PEM-encoded private key
passwordOptional password if the private key file is encrypted

Member Function Documentation

◆ WithAllowServerNameWildcard()

TlsClientConfig dnp3.TlsClientConfig.WithAllowServerNameWildcard ( bool  value)
inline

If set to true, a '*' may be used for TlsClientConfig.DnsName to bypass server name validation

◆ WithCertificateMode()

TlsClientConfig dnp3.TlsClientConfig.WithCertificateMode ( CertificateMode  value)
inline

Certificate validation mode

◆ WithDnsName()

TlsClientConfig dnp3.TlsClientConfig.WithDnsName ( string  value)
inline

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

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

◆ WithLocalCertPath()

TlsClientConfig dnp3.TlsClientConfig.WithLocalCertPath ( string  value)
inline

Path to the PEM-encoded local certificate

◆ WithMinTlsVersion()

TlsClientConfig dnp3.TlsClientConfig.WithMinTlsVersion ( MinTlsVersion  value)
inline

Minimum TLS version allowed

◆ WithPassword()

TlsClientConfig dnp3.TlsClientConfig.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()

TlsClientConfig dnp3.TlsClientConfig.WithPeerCertPath ( string  value)
inline

Path to the PEM-encoded certificate of the peer

◆ WithPrivateKeyPath()

TlsClientConfig dnp3.TlsClientConfig.WithPrivateKeyPath ( string  value)
inline

Path to the the PEM-encoded private key

Member Data Documentation

◆ AllowServerNameWildcard

bool dnp3.TlsClientConfig.AllowServerNameWildcard

If set to true, a '*' may be used for TlsClientConfig.DnsName to bypass server name validation

◆ CertificateMode

CertificateMode dnp3.TlsClientConfig.CertificateMode

Certificate validation mode

◆ DnsName

string dnp3.TlsClientConfig.DnsName

Subject name which is verified in the presented server 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.TlsClientConfig.LocalCertPath

Path to the PEM-encoded local certificate

◆ MinTlsVersion

MinTlsVersion dnp3.TlsClientConfig.MinTlsVersion

Minimum TLS version allowed

◆ Password

string dnp3.TlsClientConfig.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.TlsClientConfig.PeerCertPath

Path to the PEM-encoded certificate of the peer

◆ PrivateKeyPath

string dnp3.TlsClientConfig.PrivateKeyPath

Path to the the PEM-encoded private key


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