|
xrpld
|
Functions | |
| static void | initAnonymous (boost::asio::ssl::context &context) |
| static void | initAuthenticated (boost::asio::ssl::context &context, std::string const &keyFile, std::string const &certFile, std::string const &chainFile) |
| std::shared_ptr< boost::asio::ssl::context > | getContext (std::string cipherList) |
Variables | |
| int | gDefaultRsaKeyBits = 2048 |
| The default strength of self-signed RSA certificates. | |
| static constexpr char | kDefaultDh [] |
| The default DH parameters. | |
| std::string const | kDefaultCipherList = "TLSv1.2:!CBC:!DSS:!PSK:!eNULL:!aNULL" |
| The default list of ciphers we accept over TLS. | |
|
static |
Definition at line 90 of file make_SSLContext.cpp.
|
static |
Definition at line 226 of file make_SSLContext.cpp.
| std::shared_ptr< boost::asio::ssl::context > xrpl::openssl::detail::getContext | ( | std::string | cipherList | ) |
Definition at line 322 of file make_SSLContext.cpp.
| int xrpl::openssl::detail::gDefaultRsaKeyBits = 2048 |
The default strength of self-signed RSA certificates.
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 49 of file make_SSLContext.cpp.
|
staticconstexpr |
The default DH parameters.
These were generated using the OpenSSL command: openssl dhparam 2048 by Nik Bougalis nikb@.nosp@m.boug.nosp@m.alis..nosp@m.net on May, 29, 2022.
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 63 of file make_SSLContext.cpp.
| std::string const xrpl::openssl::detail::kDefaultCipherList = "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:
Definition at line 87 of file make_SSLContext.cpp.