Bitcoin Institute

HTTPS support for bitcoin JSON-RPC

2 messages BitcoinTalk Andrew LeCody September 2, 2010 — September 4, 2010
Quote from: gavinandresen on September 01, 2010, 10:06:42 PM UTC

But, use of HTTP-Basic is just a crime, because it is so trivial to obtain the shared secret.  If HTTP-Basic is to be kept, at least require SSL connections?

It isn’t trivial to obtain the secret unless you patch the code to bind to interfaces other than loopback…

SSL connections are The Right Answer.

If I had any OpenSSL programming experience I’d volunteer to implement it.  Anybody willing and able to teach bitcoin to speak https?

And for extra credit, support SSL client certificates for authentication either instead of or in addition to HTTP-Basic…

For anyone looking for a quick hack, if you run a webserver on the same server as Bitcoin you could use the relay.php (http://github.com/aceat64/phpMyBitcoin/blob/master/scripts/relay.php) script I threw together. Then you can access the JSON-RPC interface over HTTPS, the relay simply passes commands it receives to the Bitcoin server on the loopback interface.

I’m glad to hear that someone is working on this. My only question is what SSL certificate/key is used, and can we specify which cert/key?

Edit: I should have looked closer at your code, it clearly references a pem file.