monero/contrib/epee/src
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
..
buffer.cpp epee: better network buffer data structure 2018-12-23 16:46:07 +00:00
CMakeLists.txt epee: add SSL support 2019-02-02 20:05:33 +00:00
connection_basic.cpp epee: add SSL support 2019-02-02 20:05:33 +00:00
hex.cpp wallet: wipe seed from memory where appropriate 2018-08-16 09:17:52 +00:00
http_auth.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
memwipe.c memwipe: don't call the workhorse for 0 bytes 2018-07-10 15:37:22 +01:00
mlocker.cpp Merge pull request #4951 2019-01-06 20:38:33 +02:00
mlog.cpp perf_timer: make all logs Info level 2018-12-08 10:53:09 +00:00
net_ssl.cpp epee: add SSL support 2019-02-02 20:05:33 +00:00
net_utils_base.cpp Adding initial support for broadcasting transactions over Tor 2019-01-28 23:56:33 +00:00
network_throttle-detail.cpp Merge pull request #4854 2018-12-04 17:08:42 +02:00
network_throttle.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
readline_buffer.cpp readline: don't dereference possible NULL pointer 2019-01-21 01:57:14 -05:00
string_tools.cpp move includes around to lessen overall load 2017-12-16 22:46:38 +00:00
wipeable_string.cpp wipeable_string: add hex_to_pod function 2018-09-12 09:26:09 +00:00