monero/src/rpc
Martijn Otto 057c279cb4
epee: add SSL support
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.
2019-03-05 14:16:08 +01:00
..
CMakeLists.txt Adding initial support for broadcasting transactions over Tor 2019-01-28 23:56:33 +00:00
core_rpc_server.cpp epee: add SSL support 2019-03-05 14:16:08 +01:00
core_rpc_server.h epee: add SSL support 2019-03-05 14:16:08 +01:00
core_rpc_server_commands_defs.h default initialize rpc structures 2019-03-04 22:38:03 +00:00
core_rpc_server_error_codes.h add --regtest and --fixed-difficulty for regression testing 2018-06-29 10:06:11 +02:00
daemon_handler.cpp Adding initial support for broadcasting transactions over Tor 2019-01-28 23:56:33 +00:00
daemon_handler.h Update ZMQ fee estimate and add ZMQ output distribution 2018-10-23 23:46:31 -04:00
daemon_messages.cpp remove some unused code 2018-11-23 15:37:36 +00:00
daemon_messages.h Merge pull request #4687 2018-11-04 20:44:49 +02:00
daemon_rpc_version.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
instanciations.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
message.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
message.h rpc: init m_rpc_version in Message ctor 2018-10-16 11:58:54 +00:00
message_data_structs.h Pruning 2019-01-22 20:30:51 +00:00
rpc_args.cpp rpc: allow to pass RPC login via RPC_LOGIN env var 2018-08-31 15:51:59 +02:00
rpc_args.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
rpc_handler.cpp rpc: speed up the common get_output_distribution case while syncing 2018-11-27 14:01:40 +00:00
rpc_handler.h tests: add unit tests for get_output_distribution 2018-11-16 19:21:45 +00:00
zmq_server.cpp Removed a lot of unnecessary includes 2018-11-15 17:29:34 +01:00
zmq_server.h Readd copyright starting date 2018-01-26 10:03:20 -05:00