<p>You can not connect with PuTTY as bitcoind only listens to RPC-JSON commands.</p>

<p>Anything that can send over the HTTP(S) protocol is fine. See the <a href="http://jsonrpcphp.org/">JSON-RPC class for PHP</a>.</p>

<p>Assuming that you want bitcoind to accept remote RPC-JSON calls, you would need to setup your <code>bitcoin.conf</code> file like so:</p>

<pre><code>rpcuser     = randomUsername
rpcpassword = strongRandomPassword
rpcallowip  = ipOfAllowedHost
rpcssl      = 1
</code></pre>

<p>Then, navigate to your data directory <code>.bitcoin</code> and generate a self-signed certificate. Do not enter a password when it prompts you for one.</p>

<pre><code>openssl genrsa -out server.pem 2048
openssl req -new -x509 -nodes -sha1 -days 3650 -key server.pem &gt; server.cert
</code></pre>

<p>Restart bitcoind and test the SSL functionality. You should see the certificate details, pressing enter twice will return a <code>HTTP/1.0 401 Authorization Required</code>.</p>

<pre><code>openssl s_client -connect localhost:8332
</code></pre>

<p>That's it, bitcoind will now accept RPC-JSON commands through through HTTPS.</p>

CC BY-SA 3.0
2011-09-03T12:54:35.340Z
2011-09-03T18:37:57.723Z
2011-09-03T18:37:57.723Z
Tom Williams
<p>Specifically I would like to connect to bitcoind from an outside system but I'm concerned about security. I've seen where others have said that SSL support is built into the Bitcoin client but how do I configure it and what front-ends are SSL-capable? Could I simply connect with PuTTY?</p>

<bitcoind><windows><ssl>
How do I configure the Bitcoin client for SSL on Windows?
David Perry
# How do I configure the Bitcoin client for SSL on Windows?

(Asked by: username_0 on 2011-09-03)

Specifically I would like to connect to bitcoind from an outside system but I'm concerned about security. I've seen where others have said that SSL support is built into the Bitcoin client but how do I configure it and what front-ends are SSL-capable? Could I simply connect with PuTTY?

**Tags:** bitcoind, windows, ssl


---

## 1 answers

### Answer by username_1 on 2011-09-03. Score: 11 | Accepted answer

You can not connect with PuTTY as bitcoind only listens to RPC-JSON commands.

Anything that can send over the HTTP(S) protocol is fine. See the [JSON-RPC class for PHP](http://jsonrpcphp.org/).

Assuming that you want bitcoind to accept remote RPC-JSON calls, you would need to setup your `bitcoin.conf` file like so:

```
rpcuser     = randomUsername
rpcpassword = strongRandomPassword
rpcallowip  = ipOfAllowedHost
rpcssl      = 1

```

Then, navigate to your data directory `.bitcoin` and generate a self-signed certificate. Do not enter a password when it prompts you for one.

```
openssl genrsa -out server.pem 2048
openssl req -new -x509 -nodes -sha1 -days 3650 -key server.pem > server.cert

```

Restart bitcoind and test the SSL functionality. You should see the certificate details, pressing enter twice will return a `HTTP/1.0 401 Authorization Required`.

```
openssl s_client -connect localhost:8332

```

That's it, bitcoind will now accept RPC-JSON commands through through HTTPS.


---

