-
Notifications
You must be signed in to change notification settings - Fork 52
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
CERTIFICATE_VERIFY_FAILED on startup #136
Comments
FYI I generated the certificate on Git Bash using |
Just regenerated my lnd certificate on my Windows machine using Git Bash and everything works fine 🤔 What shows Do you have a line saying: May be you specified a custom |
I didn't specify a custom rpchost. |
Yes it does:
|
I've a similiar issue but probably a little bit more complicated setup: I'm trying to run lnd and lncli-web in docker. So here are some questions which might also help to clarify this case (and maybe others): lnd has a --rpclisten switch which i set like --rpclisten=0.0.0.0:10009. This resulted in the lnd-logs like such:
Question: lncli-web is using the grpc-interface, can you confirm? At least the logs look like this. To me that means that i have to make lnd also listen port 8080 on 0.0.0.0 which i could not find a switch yet on lnd. Also i see these log-messages:
Question: I don't have to provide that directory, can you confirm? Would be difficult (although doable) in a docker-setup but i couldn't find any hint that this is strictly necessary. |
lncli-web is connecting directly to the lnd grpc interface which defaults to 10009, lncli-web doesn't use the we proxy. Providing a valid lnd log configuration settings ( |
adding |
Great, i have it working. The solution was simple but i couldn't see the forest because of too many trees. In my case i'm running both in docker. I'm connecting them by "--link alice". So as the |
Thanks for sharing your solution 👍 |
Unfortunately it's not finished. Replacing the subject with alice results in a problem if you want to use the lncli from within the lnd-container. So what's needed here would be a subjectAltName "localhost". I tried it with https://security.stackexchange.com/questions/74345/provide-subjectaltname-to-openssl-directly-on-command-line but that works only for the csr. The cert which is based on the csr is somehow missing the subjectAltName. This is clearly out of scope for this ticket but maybe it helps someone:
That's a snippet from your init.sh which i'm messing with. The solution is quite ugly as i need to modify the lnd-startup-script as well (and have to restart the alice-container afterwards as well) but i want to have that fully automated for reference-reasons. I'd be happy to create a PR if i get that to work. |
I've solved this. The problem with some investigation and the solution is here: https://gist.github.com/k9ert/9f549ea46b3b70b6cbcd4c1abac27d8c In short: |
I'm following the lnd tutorial, I'm now at stage 2, using lncweb.
I'm using Windows 10 and latest lnd/btcd.
I setup a cert file according to the tutorial. Getting
CERTIFICATE_VERIFY_FAILED
errors.How should I proceed to debug this?
The text was updated successfully, but these errors were encountered: