monero/src/wallet
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
..
api epee: add SSL support 2019-02-02 20:05:33 +00:00
CMakeLists.txt Merge pull request #4945 2018-12-31 15:53:59 -06:00
message_store.cpp message_store: fix error message adding const char * with offset 2018-12-22 15:52:10 +00:00
message_store.h message_store: init me field 2019-01-07 16:41:34 +00:00
message_transporter.cpp MMS (Multisig Messaging System): Initial version 2018-12-12 21:49:20 +01:00
message_transporter.h MMS (Multisig Messaging System): Initial version 2018-12-12 21:49:20 +01:00
node_rpc_proxy.cpp Removed a lot of unnecessary includes 2018-11-15 17:29:34 +01:00
node_rpc_proxy.h v8: per byte fee, pad bulletproofs, fixed 11 ring size 2018-09-11 13:38:07 +00:00
ringdb.cpp Removed a lot of unnecessary includes 2018-11-15 17:29:34 +01:00
ringdb.h record blackballs as amount/offset, and add export ability 2018-09-10 09:04:18 +00:00
wallet2.cpp epee: add SSL support 2019-02-02 20:05:33 +00:00
wallet2.h epee: add SSL support 2019-02-02 20:05:33 +00:00
wallet_args.cpp wallet: warn if lockable memory limit is too low 2018-11-03 20:09:28 +00:00
wallet_args.h wallet cli/rpc: terminate execution with code 0 when --help or --version is given 2018-04-22 11:48:44 +09:00
wallet_errors.h MMS (Multisig Messaging System): Initial version 2018-12-12 21:49:20 +01:00
wallet_rpc_server_commands_defs.h wallet_rpc_server: add all field to export_key_images 2018-12-24 13:00:29 +00:00
wallet_rpc_server_error_codes.h Add RPC error code for non-deterministic wallet 2018-10-18 23:14:06 +02:00
wallet_rpc_server.cpp epee: add SSL support 2019-02-02 20:05:33 +00:00
wallet_rpc_server.h rpc: fix internal daemon calls in restricted rpc getting partial data 2019-01-28 19:35:20 +00:00