monero/src/common
moneromooo-monero 2456945408
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-02-02 20:05:33 +00:00
..
compat Add glibc back compat code 2018-12-04 02:21:06 +01:00
aligned.c aligned: aligned memory alloc/realloc/free 2018-09-11 13:37:34 +00:00
aligned.h aligned: aligned memory alloc/realloc/free 2018-09-11 13:37:34 +00:00
apply_permutation.h Readd copyright starting date 2018-01-26 10:03:20 -05:00
base58.cpp Merge pull request #4894 2018-12-04 17:33:19 +02:00
base58.h a few minor (but easy) performance tweaks 2018-11-23 15:36:48 +00:00
boost_serialization_helper.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
CMakeLists.txt Pruning 2019-01-22 20:30:51 +00:00
combinator.cpp Fix issue 4793 - M/N multisig transaction signature 2018-11-20 16:50:41 +03:00
combinator.h Fix issue 4793 - M/N multisig transaction signature 2018-11-20 16:50:41 +03:00
command_line.cpp Removed a lot of unnecessary includes 2018-11-15 17:29:34 +01:00
command_line.h command_line: allow args to depend on more than one args 2018-03-05 11:19:08 +09:00
common_fwd.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
dns_utils.cpp Merge pull request #4894 2018-12-04 17:33:19 +02:00
dns_utils.h dns_utils: do not exit if DNS records are corrupt 2018-11-01 22:53:48 +00:00
download.cpp epee: add SSL support 2019-02-02 20:05:33 +00:00
download.h Readd copyright starting date 2018-01-26 10:03:20 -05:00
error.cpp Adding expect<T> - a value-or-error implementation 2018-09-12 22:44:34 +00:00
error.h Adding expect<T> - a value-or-error implementation 2018-09-12 22:44:34 +00:00
expect.cpp Adding expect<T> - a value-or-error implementation 2018-09-12 22:44:34 +00:00
expect.h Providing user supplied default constructor for expect<void> 2018-10-15 23:42:29 -04:00
http_connection.h various: do not propagate exception through dtor 2018-11-15 15:53:21 +00:00
i18n.cpp i18n: filter LANG/LC_LANG for valid characters, and handle @ 2019-01-08 16:03:30 +00:00
i18n.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
json_util.h wallet: ask-password can now ask without encrypting the secret spend key 2018-09-14 11:14:21 +00:00
notify.cpp notify: handle arbitrary tags 2019-01-28 19:32:28 +00:00
notify.h notify: handle arbitrary tags 2019-01-28 19:32:28 +00:00
password.cpp Removed a lot of unnecessary includes 2018-11-15 17:29:34 +01:00
password.h wallet: fix --generate-from-json using wrong password 2018-10-01 12:32:26 +00:00
perf_timer.cpp perf_timer: check allowed categories before logging 2018-12-07 14:23:47 +00:00
perf_timer.h Merge pull request #4954 2019-01-06 20:39:29 +02:00
pod-class.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
pruning.cpp Pruning 2019-01-22 20:30:51 +00:00
pruning.h Pruning 2019-01-22 20:30:51 +00:00
rpc_client.h rpc_client: Fix error handling 2018-01-29 11:54:57 +11:00
scoped_message_writer.h scoped_message_writer: protect all std::cout usage from readline 2018-11-21 12:48:43 +00:00
sfinae_helpers.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
spawn.cpp common: set MONERO_DEFAULT_LOG_CATEGORY for notify and spawn 2019-01-28 19:32:22 +00:00
spawn.h common: Windows 'spawn' support for tx and block notifications 2018-10-02 01:53:27 +03:00
stack_trace.cpp Merge pull request #4138 2018-08-15 17:19:04 -05:00
stack_trace.h Readd copyright starting date 2018-01-26 10:03:20 -05:00
threadpool.cpp Removed a lot of unnecessary includes 2018-11-15 17:29:34 +01:00
threadpool.h threadpool: allow leaf functions to run concurrently 2018-06-26 22:15:22 +01:00
unordered_containers_boost_serialization.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
updates.cpp updates: fix hash sanity checking 2018-08-05 00:19:45 +00:00
updates.h Readd copyright starting date 2018-01-26 10:03:20 -05:00
util.cpp Merge pull request #4944 2018-12-31 15:52:17 -06:00
util.h MMS (Multisig Messaging System): Initial version 2018-12-12 21:49:20 +01:00
varint.h Pruning 2019-01-22 20:30:51 +00:00