janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.52k stars 1.13k forks source link

Connect to RPC via https #236

Open FallingSnow opened 3 years ago

FallingSnow commented 3 years ago

It seems that connecting to RPC via https is supported bit bitcoin-core, but those options are not passed from btc-rpc-explorer in any way. Could you pass through an https option for the rpc?

loganmarchione commented 3 years ago

@FallingSnow - Where are you seeing that? I thought SSL was dropped from Bitcoin Core in v0.12.0? https://bitcoin.org/en/release/v0.12.0#rpc-ssl-support-dropped

FallingSnow commented 3 years ago

I believe I was looking at https://github.com/ruimarinho/bitcoin-core/blob/504afda7a018f63ecb23cbb64a2936eb015e5c5d/src/index.js#L53 which btc-rpc-explorer relies on. Looks like we were looking at 2 different bitcoin-core's.

Presumably if this option was enabled and you use some kind of SSL proxy for RPC you could get RPC over SSL.