Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC SSL to btcd #35

Closed
PRabahy opened this issue Aug 1, 2014 · 2 comments
Closed

RPC SSL to btcd #35

PRabahy opened this issue Aug 1, 2014 · 2 comments

Comments

@PRabahy
Copy link

PRabahy commented Aug 1, 2014

I am trying to use bitcoind-ncurses to connect to btcd. I successfully got bitcoind-ncurses running on my box and had to make a small mod to it for it to support SSL (PRabahy/bitcoind-ncurses@d49a8c4). Even after doing that, I am having trouble getting to to connect.

I am very inexperience with python so began adding print statements to the code and believe I have the bug narrowed down to authproxy.py --> call --> self.__conn.request(...). I see that it makes the call, but never executes the print statement that I added on the next line. I assume that this means that it threw an exception.

I was suspicious of the call to httplib.HTTPSConnection(...) because it was passing None for the cert and key, but even after adding those it is still skipping my print statement.

I would love to eliminate some variables, but I am also having trouble getting bitcoind to run with RPC SSL and btcd requires RPC SSL (no option for insecure).

@PRabahy
Copy link
Author

PRabahy commented Aug 5, 2014

Figured it out after some more debugging. Python 2.7.5 (at least on Windows) has a bug with negotiating the SSL version. Once I upgraded to 2.7.8 it started working.

https://github.com/azeteki/bitcoind-ncurses/issues/5

@arnuschky
Copy link
Contributor

Described fix did not work for me on Ubuntu 12.04, with any python version (2.7.9, for example). See PR #50 for a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants