TLS client configuration
More...
◆ TlsClientConfig()
rodbus.TlsClientConfig.TlsClientConfig |
( |
string |
dnsName, |
|
|
string |
peerCertPath, |
|
|
string |
localCertPath, |
|
|
string |
privateKeyPath, |
|
|
string |
password |
|
) |
| |
|
inline |
Initialize a TLS client configuration
Default values:
- Parameters
-
dnsName | Name expected to be in the presented certificate (only in CertificateMode.AuthorityBased) |
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 rodbus.TlsClientConfig.WithAllowServerNameWildcard |
( |
bool |
value | ) |
|
|
inline |
◆ WithCertificateMode()
Certificate validation mode
◆ WithDnsName()
Name expected to be in the presented certificate (only in 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 rodbus.TlsClientConfig.AllowServerNameWildcard |
◆ CertificateMode
Certificate validation mode
◆ DnsName
string rodbus.TlsClientConfig.DnsName |
Name expected to be in the presented certificate (only in CertificateMode.AuthorityBased)
◆ LocalCertPath
string rodbus.TlsClientConfig.LocalCertPath |
Path to the PEM-encoded local certificate
◆ MinTlsVersion
Minimum TLS version allowed
◆ Password
string rodbus.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 rodbus.TlsClientConfig.PeerCertPath |
Path to the PEM-encoded certificate of the peer
◆ PrivateKeyPath
string rodbus.TlsClientConfig.PrivateKeyPath |
Path to the the PEM-encoded private key
The documentation for this class was generated from the following file: