<blockquote>
<p>Is it possible to configure c-lightning cookie based authentication to bitcoind as opposed to rpcuser/rpcpassword?</p>
</blockquote>
<p>Yes it works with <code>.cookie</code> now. It is automatic, it is the positive side effect of c-lightning invoking bitcoin-cli to communicate with bitcoind instead of handling RPC and authentication itself.</p>
<blockquote>
<p>Does <code>lightning.conf</code> read the rpcuser/rpcpassword from <code>bitcoin.conf</code>?</p>
</blockquote>
<p>No.</p>
<p>This was answered by various individuals on Twitter.</p>

CC BY-SA 4.0
2021-08-30T12:10:35.577Z
2021-08-30T12:10:35.577Z
Michael Folkson
<p>Is it possible to configure c-lightning cookie based authentication to bitcoind as opposed to rpcuser/rpcpassword?</p>
<p>Does <code>lightning.conf</code> read the rpcuser/rpcpassword from <code>bitcoin.conf</code>?</p>
<p>This question was asked by Kalle Rosenbaum on <a href="https://twitter.com/kallerosenbaum/status/1432051566387908612?s=20" rel="nofollow noreferrer">Twitter</a>.</p>

<json-rpc><core-lightning><authentication>
Is it possible to configure c-lightning cookie based auth to bitcoind as opposed to rpcuser/rpcpassword?
Michael Folkson
# Is it possible to configure c-lightning cookie based auth to bitcoind as opposed to rpcuser/rpcpassword?

(Asked by: username_0 on 2021-08-30)

Is it possible to configure c-lightning cookie based authentication to bitcoind as opposed to rpcuser/rpcpassword?

Does `lightning.conf` read the rpcuser/rpcpassword from `bitcoin.conf`?

This question was asked by Kalle Rosenbaum on [Twitter](https://twitter.com/kallerosenbaum/status/1432051566387908612?s=20).

**Tags:** json-rpc, core-lightning, authentication


---

## 1 answers

### Answer by username_0 on 2021-08-30. Score: 1 | Accepted answer

> Is it possible to configure c-lightning cookie based authentication to bitcoind as opposed to rpcuser/rpcpassword?

Yes it works with `.cookie` now. It is automatic, it is the positive side effect of c-lightning invoking bitcoin-cli to communicate with bitcoind instead of handling RPC and authentication itself.

> Does `lightning.conf` read the rpcuser/rpcpassword from `bitcoin.conf`?

No.

This was answered by various individuals on Twitter.


---

