Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Wallet Unlock - "authentication handshake failed" #8

Open
grnqrtr opened this issue Nov 3, 2018 · 2 comments
Open

Auto Wallet Unlock - "authentication handshake failed" #8

grnqrtr opened this issue Nov 3, 2018 · 2 comments

Comments

@grnqrtr
Copy link

grnqrtr commented Nov 3, 2018

Thanks robclark56 for your tutorials. I've been having fun playing with lightning!

I am trying to set up the "Auto Wallet Unlock using Encyrypted Wallet Password."

If I test the PHP file my encrypted password is successfully returned from the webserver, but when I try to run /etc/cron.hourly/lnd_unlock;echo it does not unlock my wallet and returns this error:

{"error":"connection error: desc = \"transport: authentication handshake failed: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs\"","code":13}

The only thing I changed from your example /etc/cron.hourly/lnd_unlock was the path to admin.macaroon because that seems to be different. I'm using lnd version 0.5.0-beta commit=3b2c807288b1b7f40d609533c1e96a510ac5fa6d

Do you have any idea what I could do to fix this error? Maybe I need to make my certificates differently?

@robclark56
Copy link
Owner

robclark56 commented Nov 3, 2018

I am guessing here ... (I have not upgraded to V0,5.x) ... but I think that error is because of 1 of these

  1. You have missed the "--insecure" flag in the curl statement
  2. The last line of the curl command is: https://127.0.0.1:${restlisten}/v1/unlockwallet instead of https://localhost:${restlisten}/v1/unlockwallet
  3. You need to rebuild your certs after the change to lnd.conf (That usually means deleting the macaroons and restarting LND)
  4. ???

@grnqrtr
Copy link
Author

grnqrtr commented Nov 5, 2018

Thanks for the suggestions. It's not 1 or 2, I have the curl command as you do in the example. I was in the process of trying 3, but after moving the macaroons the wallet just complains about not being able to locate them. I thought it would create new ones, but maybe not? I moved the original macaroons back and after closing out my open channels and moving my bitcoin out I will make a new wallet and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants