dnp3 (C++ API) 1.1.0
|
TLS client configuration. More...
#include <dnp3.hpp>
Public Member Functions | |
TlsClientConfig (const std::string &dns_name, const std::string &peer_cert_path, const std::string &local_cert_path, const std::string &private_key_path, const std::string &password) | |
construct the configuration with defaults More... | |
Public Attributes | |
std::string | dns_name |
Expected name to validate in the presented certificate (only in CertificateMode::authority_based mode) More... | |
std::string | peer_cert_path |
Path to the PEM-encoded certificate of the peer. More... | |
std::string | local_cert_path |
Path to the PEM-encoded local certificate. More... | |
std::string | private_key_path |
Path to the the PEM-encoded private key. More... | |
std::string | password |
Optional password if the private key file is encrypted. More... | |
MinTlsVersion | min_tls_version |
Minimum TLS version allowed. More... | |
CertificateMode | certificate_mode |
Certificate validation mode. More... | |
Friends | |
class | CppTlsClientConfigFriend |
TLS client configuration.
dnp3::TlsClientConfig::TlsClientConfig | ( | const std::string & | dns_name, |
const std::string & | peer_cert_path, | ||
const std::string & | local_cert_path, | ||
const std::string & | private_key_path, | ||
const std::string & | password | ||
) |
construct the configuration with defaults
dns_name | Expected name to validate in the presented certificate (only in CertificateMode::authority_based mode) |
peer_cert_path | Path to the PEM-encoded certificate of the peer |
local_cert_path | Path to the PEM-encoded local certificate |
private_key_path | Path to the the PEM-encoded private key |
password | Optional password if the private key file is encrypted |
CertificateMode dnp3::TlsClientConfig::certificate_mode |
Certificate validation mode.
std::string dnp3::TlsClientConfig::dns_name |
Expected name to validate in the presented certificate (only in CertificateMode::authority_based mode)
std::string dnp3::TlsClientConfig::local_cert_path |
Path to the PEM-encoded local certificate.
MinTlsVersion dnp3::TlsClientConfig::min_tls_version |
Minimum TLS version allowed.
std::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.
std::string dnp3::TlsClientConfig::peer_cert_path |
Path to the PEM-encoded certificate of the peer.
std::string dnp3::TlsClientConfig::private_key_path |
Path to the the PEM-encoded private key.