057c279cb4
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. |
||
---|---|---|
.. | ||
account.cpp | ||
address_from_url.cpp | ||
aligned.cpp | ||
apply_permutation.cpp | ||
ban.cpp | ||
base58.cpp | ||
block_queue.cpp | ||
block_reward.cpp | ||
blockchain_db.cpp | ||
bulletproofs.cpp | ||
canonical_amounts.cpp | ||
chacha.cpp | ||
checkpoints.cpp | ||
CMakeLists.txt | ||
command_line.cpp | ||
crypto.cpp | ||
decompose_amount_into_digits.cpp | ||
device.cpp | ||
dns_resolver.cpp | ||
epee_boosted_tcp_server.cpp | ||
epee_levin_protocol_handler_async.cpp | ||
epee_utils.cpp | ||
expect.cpp | ||
fee.cpp | ||
get_xtype_from_string.cpp | ||
hardfork.cpp | ||
hashchain.cpp | ||
http.cpp | ||
is_hdd.cpp | ||
json_serialization.cpp | ||
keccak.cpp | ||
logging.cpp | ||
long_term_block_weight.cpp | ||
main.cpp | ||
memwipe.cpp | ||
mlocker.cpp | ||
mnemonics.cpp | ||
mul_div.cpp | ||
multiexp.cpp | ||
multisig.cpp | ||
net.cpp | ||
notify.cpp | ||
output_distribution.cpp | ||
output_selection.cpp | ||
parse_amount.cpp | ||
pruning.cpp | ||
random.cpp | ||
ringct.cpp | ||
ringdb.cpp | ||
serialization.cpp | ||
sha256.cpp | ||
slow_memmem.cpp | ||
subaddress.cpp | ||
test_notifier.cpp | ||
test_peerlist.cpp | ||
test_protocol_pack.cpp | ||
test_tx_utils.cpp | ||
threadpool.cpp | ||
unbound.cpp | ||
unit_tests_utils.h | ||
uri.cpp | ||
varint.cpp | ||
vercmp.cpp | ||
wipeable_string.cpp |