How to connect LND to bitcoind RPC with authentication cookie stored in a custom folder?

1

I configured bitcoind RPC to authenticate clients with an authentication cookie. However I cant figure out if it's possible to use this method with lnd while connecting to bitcoind RPC.

I would like to clarify that I'm running bitcoind and lnd in two separated docker containers that share a volume where bitcoind save the authentication cookie. The problem is that lnd doesn't allow to specify the folder in which it could find the cookie... In bitcoin.conf for exemple you can specify the path where you can find the authentication cookie of the tor control port for example...

Someone knows how to do this in lnd ? Is it possible ?

Thank you!

Zighy Blue

Posted 2019-11-23T02:05:16.120

Reputation: 11

It should be possible: https://lightningwiki.net/index.php/RPC_auth_for_bitcoind

MeshCollider 2019-11-23T04:39:47.840

RPCauth is not the authentication cookie, with authentication cookie you don't need to create a password, a cookie is generated and shared between bitcoind and lnd on the same file system or shared folder...Zighy Blue 2019-11-25T21:01:22.540

Answers

2

It is supported according to the LND installation guide

NOTE:

The auth parameters rpcuser and rpcpass parameters can typically be determined by lnd for a bitcoind instance running under the same user, including when using cookie auth. In this case, you can exclude them from the lnd options entirely.

MeshCollider

Posted 2019-11-23T02:05:16.120

Reputation: 8 735

I'm running bitcoind and lnd in two separated docker containers that share a volume where bitcoind save the authentication cookie. The problem is that lnd doesn't allow to specify the folder in which it could find the cookie... In bitcoin.conf for exemple you can specify the path where you can find the authentication cookie of the tor control port...Zighy Blue 2019-11-25T20:54:10.330