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

ssl_transport_security.cc:636] Could not load any root certificate #83

Open
songproducer opened this issue Mar 22, 2019 · 3 comments
Open

Comments

@songproducer
Copy link

Hi! I'm using Lunanode with the default btcpayxxxxxx.lndyn.com domain.

I just ran the example code:

const lnService = require('ln-service');

const lnd = lnService.lightningDaemon({
  cert: 'base64 encoded tls.cert',
  macaroon: 'base64 encoded admin.macaroon',
  socket: '127.0.0.1:8080',
});

lnService.getWalletInfo({lnd}, (error, result) => {
  console.log(result);
});
@alexbosworth
Copy link
Owner

Try removing the cert

@songproducer
Copy link
Author

songproducer commented Mar 23, 2019

I removed this line:

cert: 'base64 encoded tls.cert',

and got:

npm WARN lifecycle The node binary used for scripts is /snap/bin/node but npm is using /snap/node/1738/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> [email protected] start /home/ubuntu/ir
> node index.js

undefined

@RyanMilb
Copy link

RyanMilb commented Apr 6, 2019

Song producer, try modifying the test function to spit out the error. It should give you more info about the issue.

lnService.getWalletInfo({lnd}, (error, result) => {
console.log(result);
console.log(error); //< --- Add this line
});

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

3 participants