Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Gavin Andresen on October 11, 2010, 06:56:00 PM



Title: OpenSSL (https) JSON-RPC connections
Post by: Gavin Andresen on October 11, 2010, 06:56:00 PM
SVN rev 166 (bitcoin version 0.3.13.4) implements secure incoming SSL JSON-RPC connections to bitcoind or bitcoin -server on Linux and OSX.

I've created a wiki page (http://www.bitcoin.org/wiki/doku.php?id=rpcssl) with detailed instructions on how to configure bitcoin.conf for SSL JSON-RPC connections.

SSL support is enabled at compile time with the USE_SSL #define, and is not enabled in the Windows makefiles because I'm told there are... issues... compiling full OpenSSL libraries on Windows (core bitcoin uses the openssl libcrypto library, this change requires the full libssl library).


Title: Re: OpenSSL (https) JSON-RPC connections
Post by: BioMike on October 11, 2010, 08:03:22 PM
Nice.


Title: Re: OpenSSL (https) JSON-RPC connections
Post by: jgarzik on October 11, 2010, 11:16:09 PM
SSL support is enabled at compile time with the USE_SSL #define, and is not enabled in the Windows makefiles because I'm told there are... issues... compiling full OpenSSL libraries on Windows (core bitcoin uses the openssl libcrypto library, this change requires the full libssl library).

What are the issues?

FWIW, one can download mingw32-openssl from fedora, thereby obtaining portable (across Win32) binaries without all the work.


Title: Re: OpenSSL (https) JSON-RPC connections
Post by: Gavin Andresen on October 11, 2010, 11:29:24 PM
What are the issues?

FWIW, one can download mingw32-openssl from fedora, thereby obtaining portable (across Win32) binaries without all the work.
I don't know what the issues are-- I do Mac/Linux these days (I don't do Windows).  Does the precompiled fedora mingw32-openssl support ECSDA signatures?  Can you give it a try and let us know if it works?  (just add -DUSE_SSL to the Makefile and link with whatever libssl is called under mingw32)


Title: Re: OpenSSL (https) JSON-RPC connections
Post by: slurch on April 23, 2011, 01:26:42 AM
I hate to dredge this up after 6 months, but I'm trying to set this up right now...on my Windows 7 box. :( Has any progress been made that a summary noob such as myself might be able to make use of? The wiki has some of the pieces, but I'm stumped on this one. Thanks, guys.

Edit: No other pertinent threads on the topic doesn't bode well for my noobness, either. :P


Title: Re: OpenSSL (https) JSON-RPC connections
Post by: unfinishe on May 24, 2011, 06:28:40 PM
Well, I have managed to compile the latest source on Windows XP SP3 with ssl support just fine by editing makefile.mingw:

line 28:
Code:
 -l db_cxx \
 -l eay32
to
Code:
 -l db_cxx \
 -l ssl \
 -l eay32

and line 33:
Code:
DEFS=-DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH
to
Code:
DEFS=-DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -DUSE_SSL

and then following the instructions here: http://forum.bitcoin.org/index.php?topic=5851.