From ea6df35c87071945301776f6977e04d43659cfab Mon Sep 17 00:00:00 2001
From: Dennis Reimann
Date: Sun, 24 Nov 2019 09:48:34 +0100
Subject: [PATCH] LN Node: Show ready to use certthumbprint
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Turns the output of the `openssl` command from
`SHA256 Fingerprint=48:37:A4:D6:[…]`
into this, which can be copied and inserted directly:
`4837A4D6[…]`
---
BTCPayServer/Views/Stores/AddLightningNode.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/BTCPayServer/Views/Stores/AddLightningNode.cshtml b/BTCPayServer/Views/Stores/AddLightningNode.cshtml
index c1ab6a21e..0a088380b 100644
--- a/BTCPayServer/Views/Stores/AddLightningNode.cshtml
+++ b/BTCPayServer/Views/Stores/AddLightningNode.cshtml
@@ -66,7 +66,7 @@
Note that the certthumbprint to connect to your LND node can be obtained through this command line:
- openssl x509 -noout -fingerprint -sha256 -inform pem -in /root/.lnd/tls.cert
+ openssl x509 -noout -fingerprint -sha256 -inform pem -in /root/.lnd/tls.cert | sed -e 's/.*=//' -e 's/://g'
You can omit certthumbprint if you the certificate is trusted by your machine
You can set allowinsecure to true if your LND REST server is using HTTP or HTTPS with an untrusted certificate which you don't know the certthumbprint