mably / lncli-web

Light-weight web client for the lnd daemon written in NodeJS / Angular.
https://github.com/lightningnetwork/lnd
GNU Affero General Public License v3.0
184 stars 58 forks source link

SSL issue when running application with PM2 #126

Open yasirrose opened 6 years ago

yasirrose commented 6 years ago

I have ubuntu server and i have configured bitcoind and lnd with mainnet on it. Now i am running this application using pm2. So that i can access it through public ip.

I am running following command:

pm2 start server.js -- -l localhost:8332 -h 0.0.0.0

But now i am getting following error. I don't know. why. Can you please help me to make it work 0|server | E0421 19:06:17.434960868 21463 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.

halfik commented 6 years ago

Shoudnt you run it like this?

pm start server.js --usetls . --serverhost 0.0.0.0 --user PUT_USER_HERE --pwd USER_PWD --limituser LIMIT_USER_HERE --limitpwd LIMIT_PWD

halfik commented 6 years ago

@mably You can take a look here fora problem and solution i think: https://github.com/lightningnetwork/lnd/issues/795