mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
057c279cb4
RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you. |
||
---|---|---|
.. | ||
net | ||
serialization | ||
storages | ||
ado_db_helper.h | ||
console_handler.h | ||
copyable_atomic.h | ||
file_io_utils.h | ||
fnv1.h | ||
global_stream_operators.h | ||
gzip_encoding.h | ||
hex.h | ||
hmac-md5.h | ||
include_base_utils.h | ||
int-util.h | ||
math_helper.h | ||
md5_l.h | ||
md5_l.inl | ||
md5global.h | ||
memwipe.h | ||
misc_language.h | ||
misc_log_ex.h | ||
misc_os_dependent.h | ||
mlocker.h | ||
pragma_comp_defs.h | ||
profile_tools.h | ||
readline_buffer.h | ||
reg_exp_definer.h | ||
reg_utils.h | ||
service_impl_base.h | ||
sha1.h | ||
sha1.inl | ||
soci_helper.h | ||
span.h | ||
static_initializer.h | ||
stats.h | ||
stats.inl | ||
string_coding.h | ||
string_tools.h | ||
syncobj.h | ||
time_helper.h | ||
tiny_ini.h | ||
to_nonconst_iterator.h | ||
warnings.h | ||
winobj.h | ||
wipeable_string.h | ||
zlib_helper.h |