monero/tests/unit_tests
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
..
account.cpp store secret keys encrypted where possible 2018-08-16 11:57:43 +00:00
address_from_url.cpp unit_tests: fix longstanding DNS related unit test 2018-09-28 15:28:38 +00:00
aligned.cpp unit_tests: add unit test for alloc alignment being a power of 2 2018-10-08 11:36:42 +00:00
apply_permutation.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
ban.cpp Pruning 2019-01-22 20:30:51 +00:00
base58.cpp Stagenet 2018-03-05 11:55:05 +09:00
block_queue.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
block_reward.cpp v8: per byte fee, pad bulletproofs, fixed 11 ring size 2018-09-11 13:38:07 +00:00
blockchain_db.cpp ArticMine's new block weight algorithm 2019-03-04 09:33:58 +00:00
bulletproofs.cpp add a bulletproof version, new bulletproof type, and rct config 2019-01-22 23:17:24 +00:00
canonical_amounts.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
chacha.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
checkpoints.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
CMakeLists.txt ArticMine's new block weight algorithm 2019-03-04 09:33:58 +00:00
command_line.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
crypto.cpp unit_tests: don't take the address of an unwrapped secret key 2018-11-16 19:36:02 +00:00
decompose_amount_into_digits.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
device.cpp ringct: remove unused senderPk from ecdhTuple 2019-01-22 23:17:42 +00:00
dns_resolver.cpp dns: change default DNS to a worldwide selection 2018-02-08 09:46:16 +00:00
epee_boosted_tcp_server.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
epee_levin_protocol_handler_async.cpp epee: better network buffer data structure 2018-12-23 16:46:07 +00:00
epee_utils.cpp epee: add SSL support 2019-03-05 14:16:08 +01:00
expect.cpp Adding expect<T> - a value-or-error implementation 2018-09-12 22:44:34 +00:00
fee.cpp v8: per byte fee, pad bulletproofs, fixed 11 ring size 2018-09-11 13:38:07 +00:00
get_xtype_from_string.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
hardfork.cpp ArticMine's new block weight algorithm 2019-03-04 09:33:58 +00:00
hashchain.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
http.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
is_hdd.cpp Merge pull request #4424 2018-09-29 22:19:44 +02:00
json_serialization.cpp add a bulletproof version, new bulletproof type, and rct config 2019-01-22 23:17:24 +00:00
keccak.cpp tests: fix MSYS2 gcc 7.3.0 warning -Wtype-limits 2018-10-29 08:20:15 +03:00
logging.cpp unit_tests: add logging unit test 2018-11-09 16:57:03 +00:00
long_term_block_weight.cpp ArticMine's new block weight algorithm 2019-03-04 09:33:58 +00:00
main.cpp Merge pull request #4459 2018-09-29 22:20:38 +02:00
memwipe.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
mlocker.cpp Merge pull request #4459 2018-09-29 22:20:38 +02:00
mnemonics.cpp added two tests for partial word and case tolerance in mnemonics 2019-01-11 13:46:20 -06:00
mul_div.cpp move int-util.h to epee 2018-12-04 15:14:29 +00:00
multiexp.cpp unit_tests: add a few more multiexp unit tests 2018-09-11 13:38:19 +00:00
multisig.cpp remove some unused code 2018-11-23 15:37:36 +00:00
net.cpp Adding initial support for broadcasting transactions over Tor 2019-01-28 23:56:33 +00:00
notify.cpp unit_tests: remove leftover debug print 2019-02-01 19:14:55 +00:00
output_distribution.cpp ArticMine's new block weight algorithm 2019-03-04 09:33:58 +00:00
output_selection.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
parse_amount.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
pruning.cpp Pruning 2019-01-22 20:30:51 +00:00
random.cpp crypto: remove slight bias in key generation due to modulo 2018-07-05 09:18:01 +01:00
ringct.cpp ringct: the commitment mask is now deterministic 2019-01-22 23:17:39 +00:00
ringdb.cpp Rename "blackball" for clarity 2018-10-18 18:45:45 +00:00
serialization.cpp ringct: remove unused senderPk from ecdhTuple 2019-01-22 23:17:42 +00:00
sha256.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
slow_memmem.cpp tests: slow_memmem now returns size_t 2018-11-23 15:36:48 +00:00
subaddress.cpp unit_tests: do not rethrow a copy of an exception 2018-11-23 15:38:00 +00:00
test_notifier.cpp unit_tests: add a notifier test 2018-10-01 09:14:20 +00:00
test_peerlist.cpp Adding initial support for broadcasting transactions over Tor 2019-01-28 23:56:33 +00:00
test_protocol_pack.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
test_tx_utils.cpp cryptonote: sort tx_extra fields 2018-10-07 11:13:22 +00:00
threadpool.cpp threadpool: allow leaf functions to run concurrently 2018-06-26 22:15:22 +01:00
unbound.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
unit_tests_utils.h unit_tests: added gtest utility ASSERT_EQ_MAP for easily testing key-value map 2018-02-12 21:56:36 +09:00
uri.cpp Stagenet 2018-03-05 11:55:05 +09:00
varint.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
vercmp.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
wipeable_string.cpp Merge pull request #4424 2018-09-29 22:19:44 +02:00