btcpayserver / btcpayserver-docker

Docker resources for hosting BTCPayServer easily
MIT License
586 stars 360 forks source link

Problems connecting LN wallets to BTCPayServer #345

Open vanjaime opened 4 years ago

vanjaime commented 4 years ago

Hi, I am having problems connecting my zap wallet to BTCPayServer running over tor.

It looks the issue is related to no certificate for the gRPC config file. Screenshot_20200801-220125__01

Note the certificate thumbprint 'null' Shouldn't this have a cert?

Screenshot_20200801-220209__01

BTCPayServer deployed via Docker

NicolasDorier commented 4 years ago

@vanjaime BTCPay SErver is using a real certificate, a certificate is only needed if the secure channel is done through certificate pinning. That's not the case of BTCPay Server.

Seems you use Zap? It should work normally ping @rockstardev

vanjaime commented 4 years ago

That is correct I'm using ZAP however I tested Zeus as well and same issues connecting. Here I cross-post a reply from ZAP github issues regarding the use of SSL gRPC and btcpayserver. Thanks for looking into this.

https://github.com/LN-Zap/zap-android/issues/222#issuecomment-667820526

NicolasDorier commented 4 years ago

@vanjaime Zeus is not using gRPC but REST so this is not the same QR Code. If Zeus does not work, it means LND is drunk and you need to restart it. docker restart btcpayserver_lnd_bitcoin or btcpay-restart.sh restart everything.

vanjaime commented 4 years ago

Sorry I meant I tested Zeus via REST but had similar issues. Looks like the server behind the hidden server is reached but the lack of SSL cert is what prevents ZAP from connecting. See the config file generated where ssl field is false.

NicolasDorier commented 4 years ago

@vanjaime for Zap, I think you cna't use tor. Because they use gRPC which need Http2 which need HTTPS.

For Zeus, it should work, as it is plain old REST, if you use Orbot.

Eskyee commented 3 years ago

Any updates or Info on connecting Zap LND over Tor yet ??? as my iOS zap can't connect via the QR code to my BTCPay Hack0 :( checked on Zap support, I found others still having this problem. @rockstardev