Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently tried running Bitcoin-QT as a server with SSL enabled, but when I was testing the connection, with this command:

openssl s_client -connect

I got this error:

4308:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:/SourceCache/OpenSSL098/OpenSSL098-35.1/src/ssl/s23_lib.c:182:

Does anyone have an idea what is causing this problem and how should I go about fixing it?

share|improve this question
up vote 4 down vote accepted

After a bit of mocking about with this problem, I figured the certificate files were in a wrong folder. As I was running Bitcoin on testnet, the directory in which it looks for certificates is different, than on the main net. On the other hand, it loads the Bitcoin.conf from the same place...

The folder bitcoin looks for the certificate in is the folder containing wallet.dat, which for testnet is in .bitcoin/testnet/ folder

share|improve this answer
Interesting edit... I thought @Community was a process not a real human user – LamonteCristo Dec 16 '12 at 1:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.