rippled
|
Functions | |
static void | initAnonymous (boost::asio::ssl::context &context) |
static void | initAuthenticated (boost::asio::ssl::context &context, std::string const &key_file, std::string const &cert_file, std::string const &chain_file) |
std::shared_ptr< boost::asio::ssl::context > | get_context (std::string cipherList) |
Variables | |
int | defaultRSAKeyBits = 2048 |
The default strength of self-signed RSA certifices. More... | |
static constexpr const char | defaultDH [] |
The default DH parameters. More... | |
const std::string | defaultCipherList = "TLSv1.2:!CBC:!DSS:!PSK:!eNULL:!aNULL" |
The default list of ciphers we accept over TLS. More... | |
|
static |
Definition at line 86 of file make_SSLContext.cpp.
|
static |
Definition at line 228 of file make_SSLContext.cpp.
std::shared_ptr<boost::asio::ssl::context> ripple::openssl::detail::get_context | ( | std::string | cipherList | ) |
Definition at line 326 of file make_SSLContext.cpp.
int ripple::openssl::detail::defaultRSAKeyBits = 2048 |
The default strength of self-signed RSA certifices.
Per NIST Special Publication 800-57 Part 3, 2048-bit RSA is still considered acceptably secure. Generally, we would want to go above and beyond such recommendations (e.g. by using 3072 or 4096 bits) but there is a computational cost associated with that may not be worth paying, considering that:
There should not be any truly secure information (e.g. seeds or private keys) that gets relayed to the server anyways over these RPCs.
Definition at line 45 of file make_SSLContext.cpp.
|
staticconstexpr |
The default DH parameters.
These were generated using the OpenSSL command: openssl dhparam 2048
by Nik Bougalis nikb@ on May, 29, 2022. boug alis. net
It is safe to use this, but if you want you can generate different parameters and put them here. There's no easy way to change this via the config file at this time.
Definition at line 59 of file make_SSLContext.cpp.
const std::string ripple::openssl::detail::defaultCipherList = "TLSv1.2:!CBC:!DSS:!PSK:!eNULL:!aNULL" |
The default list of ciphers we accept over TLS.
Generally we include cipher suites that are part of TLS v1.2, but we specifically exclude:
ssl_ciphers
directive in the config file. Definition at line 83 of file make_SSLContext.cpp.