#include <certificate_handler.h>
◆ CertificateHandler()
Handle X.509 Router and CA keys and certificates.
- Parameters
-
[in] | ca_key_path | Path to CA key file. |
[in] | ca_cert_path | Path to CA certificate file. |
[in] | router_key_path | Path to Router key file. |
[in] | router_cert_path | Path to Router certificate file. |
◆ create()
stdx::expected< void, std::error_code > CertificateHandler::create |
( |
| ) |
|
Create Router and CA key and certificate files at configured paths.
- Returns
- std::error_code on failure
◆ no_cert_files_exists()
bool CertificateHandler::no_cert_files_exists |
( |
| ) |
const |
Check if none of the Router and CA key/certificate files exists.
- Return values
-
true | No certificate file exists. |
false | Some certificate files exists. |
◆ router_cert_files_exists()
bool CertificateHandler::router_cert_files_exists |
( |
| ) |
const |
Check if Router key and certificate files exists.
- Return values
-
true | Both Router key and certificate files exists. |
false | Router certificate and/or key file is missing. |
◆ ca_cert_path_
◆ ca_key_path_
◆ cert_gen_
◆ k_CA_CN
const std::string CertificateHandler::k_CA_CN {"MySQL_Router_Auto_Generated_CA_Certificate"} |
|
private |
◆ k_router_CN
const std::string CertificateHandler::k_router_CN |
|
private |
Initial value:{
"MySQL_Router_Auto_Generated_Router_Certificate"}
◆ router_cert_path_
◆ router_key_path_
The documentation for this class was generated from the following files: