26#ifndef ROUTER_CERTIFICATE_HANDLER_INCLUDED
27#define ROUTER_CERTIFICATE_HANDLER_INCLUDED
48 : ca_key_path_{
std::move(ca_key_path)},
49 ca_cert_path_{
std::move(ca_cert_path)},
50 router_key_path_{
std::move(router_key_path)},
51 router_cert_path_{
std::move(router_cert_path)} {}
59 bool no_cert_files_exists()
const;
67 bool router_cert_files_exists()
const;
82 const std::string k_CA_CN{
"MySQL_Router_Auto_Generated_CA_Certificate"};
83 const std::string k_router_CN{
84 "MySQL_Router_Auto_Generated_Router_Certificate"};
Definition: certificate_generator.h:105
Definition: certificate_handler.h:34
CertificateGenerator cert_gen_
Definition: certificate_handler.h:77
mysql_harness::Path router_key_path_
Definition: certificate_handler.h:80
mysql_harness::Path ca_key_path_
Definition: certificate_handler.h:78
CertificateHandler(mysql_harness::Path ca_key_path, mysql_harness::Path ca_cert_path, mysql_harness::Path router_key_path, mysql_harness::Path router_cert_path)
Handle X.509 Router and CA keys and certificates.
Definition: certificate_handler.h:44
mysql_harness::Path ca_cert_path_
Definition: certificate_handler.h:79
mysql_harness::Path router_cert_path_
Definition: certificate_handler.h:81
Class representing a path in a file system.
Definition: filesystem.h:63
Definition: expected.h:284
static mysql_service_status_t create(const char *service_names[], reference_caching_channel *out_channel) noexcept
Definition: component.cc:45
Definition: gcs_xcom_synode.h:64
#define ROUTER_LIB_EXPORT
Definition: router_export.h:15