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 | Subject name which is verified in the presented server certificate, from the SAN extension or in the common name field. |
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 |
◆ WithAllowServerNameWildcard()
TlsClientConfig dnp3.TlsClientConfig.WithAllowServerNameWildcard |
( |
bool |
value | ) |
|
|
inline |
◆ WithCertificateMode()
Certificate validation mode
◆ WithDnsName()
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()
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
◆ AllowServerNameWildcard
bool dnp3.TlsClientConfig.AllowServerNameWildcard |
◆ 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
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: