TLS client configuration
More...
◆ TlsClientConfig()
dnp3.TlsClientConfig.TlsClientConfig |
( |
string |
dnsName, |
|
|
string |
peerCertPath, |
|
|
string |
localCertPath, |
|
|
string |
privateKeyPath, |
|
|
string |
password |
|
) |
| |
|
inline |
construct the configuration with defaults
Default values:
- Parameters
-
dnsName | Expected name to validate in the presented certificate (only in CertificateMode.AuthorityBased mode) |
peerCertPath | Path to the PEM-encoded certificate of the peer |
localCertPath | Path to the PEM-encoded local certificate |
privateKeyPath | Path to the the PEM-encoded private key |
password | Optional password if the private key file is encrypted |
◆ WithCertificateMode()
Certificate validation mode
◆ WithDnsName()
◆ WithLocalCertPath()
Path to the PEM-encoded local certificate
◆ WithMinTlsVersion()
Minimum TLS version allowed
◆ WithPassword()
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()
Path to the PEM-encoded certificate of the peer
◆ WithPrivateKeyPath()
Path to the the PEM-encoded private key
◆ CertificateMode
Certificate validation mode
◆ DnsName
string dnp3.TlsClientConfig.DnsName |
◆ LocalCertPath
string dnp3.TlsClientConfig.LocalCertPath |
Path to the PEM-encoded local certificate
◆ 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: