Lnd: Can't unlock wallet - certificate has expired or is not yet valid

Created on 14 May 2019  路  7Comments  路  Source: lightningnetwork/lnd

Background

I stopped lnd and then upgraded bitcoind to v18. When finished, after restarting bitcoind, I restarted lnd and got the following error unlocking the wallet:

[lncli] rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: authentication handshake failed: x509: certificate has expired or is not yet valid"

No changes were made to my configuration.

Your environment

  • lnd version: 0.6.0-beta commit=v0.6.0-beta-72-g1387af8c9461ae23f735c240284e0d90a2b2cc47, build=production, logging=default
  • Ubuntu 16
  • bitcoind 18

Steps to reproduce

lncli unlock

Most helpful comment

Yeah it's been a year or so since we launched on mainnet, and the default expiration for the original certs created was around that time. There's a PR with a proposed fix (auto regen on restart) that we're considering: https://github.com/lightningnetwork/lnd/pull/3011

All 7 comments

@tim222tim delete tls.cert and tls.key, restart lnd. It will recreate a new tls pair for you.

That did it. Thanks!

Yeah it's been a year or so since we launched on mainnet, and the default expiration for the original certs created was around that time. There's a PR with a proposed fix (auto regen on restart) that we're considering: https://github.com/lightningnetwork/lnd/pull/3011

Thanks @Roasbeef !

i don't want to open a new thread because i have the same problem.

I updated from lnd 0.8 to 0.8.1 and if I want to get info with "lncli getinfo" I get the same error message.

can i also delete the tls.cert and tls.key to solve the problem?

thank you!

@waffi121 yes, you can try the same.

I ran into this again and resolved the issue by deleting tls.cert and tls.key, then restarting lnd.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Roasbeef picture Roasbeef  路  3Comments

whizz picture whizz  路  3Comments

qubenix picture qubenix  路  3Comments

alec-djinn picture alec-djinn  路  3Comments

MrManPew picture MrManPew  路  3Comments