apoelstra / rust-jsonrpc

Rust JSONRPC library
Creative Commons Zero v1.0 Universal
158 stars 62 forks source link

HTTPS support #106

Closed benlevi1 closed 4 months ago

benlevi1 commented 1 year ago

Hey folks,

First of all, I would like to thank you for an amazing library. I am trying to work with a bitcoin instance via HTTPs (it is behind a gateway). As far as I see, the client does not support the protocol: it does relate to "https" by adding the port 443 but there is no actual TLS handling. Do you have any plans implementing it or is there any workaround?

apoelstra commented 1 year ago

We may add a minreq backend which has HTTPS support, and soft-deprecate our hand-rolled HTTP client (which seems to be subtly broken on certain platforms). The timeline for that is months, not weeks. Hopefully not years. I'm not sure who, if anybody, is actively working on it right now.

But we don't intend to implement HTTPS support ourselves.

tcharding commented 1 year ago

Adding HTTPS support by way of minreq shouldn't be too hard. I doubt it is that much work, for my part I don't like doing things unless I at least attempt to do them thoroughly and I have not found myself motivated enough by this work to do it thoroughly. I'm more than happy to review it if you feel like adding it @benlevi1, would be a useful addition to the crate IMO.

tcharding commented 4 months ago

minreq is implemented now and it provides HTTPS, this can be closed.