This commit is contained in:
Bart
2026-05-07 12:59:44 -04:00
parent b454b8265a
commit cacefa8063
6 changed files with 8 additions and 3 deletions

View File

@@ -811,7 +811,7 @@ public:
(*cfg)[Sections::kPORT_GRPC].set(Keys::kSSL_CERT, getServerCertPath().string());
(*cfg)[Sections::kPORT_GRPC].set(Keys::kSSL_KEY, getServerKeyPath().string());
(*cfg)[Sections::kPORT_GRPC].set(
"ssl_cert_chain", getCACertPath().string()); // Using CA as intermediate
Keys::kSSL_CERT_CHAIN, getCACertPath().string()); // Using CA as intermediate
(*cfg)[Sections::kPORT_GRPC].set(Keys::kSSL_CLIENT_CA, getCACertPath().string());
Env env(*this, std::move(cfg));

View File

@@ -20,6 +20,7 @@
#include <xrpl/server/NetworkOPs.h>
#include <memory>
#include <string>
namespace xrpl {

View File

@@ -4,6 +4,7 @@
#include <xrpld/core/Config.h>
#include <xrpl/basics/BasicConfig.h>
#include <xrpl/basics/base_uint.h>
#include <xrpl/beast/unit_test/suite.h>
#include <xrpl/json/json_value.h>

View File

@@ -16,6 +16,7 @@
#include <xrpl/protocol/jss.h>
#include <memory>
#include <string>
#include <utility>
namespace xrpl::test {

View File

@@ -302,11 +302,11 @@ class ServerStatus_test : public beast::unit_test::Suite, public beast::test::En
{
auto const user = env.app()
.config()[protoWs ? Sections::kPORT_WS : Sections::kPORT_RPC]
.get<std::string>("admin_user");
.get<std::string>(Keys::kADMIN_USER);
auto const password = env.app()
.config()[protoWs ? Sections::kPORT_WS : Sections::kPORT_RPC]
.get<std::string>("admin_password");
.get<std::string>(Keys::kADMIN_PASSWORD);
// 1 - FAILS with wrong pass
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)

View File

@@ -36,8 +36,10 @@ getNodeIdentity(Application& app, boost::program_options::variables_map const& c
seed = parseBase58<Seed>(app.config().section(Sections::kNODE_SEED).lines().front());
if (!seed)
{
Throw<std::runtime_error>(
std::string("Invalid [") + Sections::kNODE_SEED + "] in configuration file");
}
}
if (seed)