mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
Fixes
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <xrpl/server/NetworkOPs.h>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace xrpl {
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <xrpl/protocol/jss.h>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace xrpl::test {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user