I'm trying to find the cert to use to attach an SN wallet to my core lightning node. I have the rest host and port, and have already created an invoice only rune. I am having trouble finding the certificate. The GUI for Core Lightning shows a macaroon. Could that be one and the same as the certificate? I tried it but it doesn't work. I followed the CLI path given to me by Start9 support to locate the certificate, but I'm not finding it. I'm sure I'm missing something basic. Any help would be appreciated.
pull down to refresh
Once you find the cert (iirc it should be called
ca.pem), you'll want to base64 encode it:openssl base64 -A -in <path>/ca.pem@endothermicdev might be able to help if I'm wrong
IIRC @OneOneSeven asked for a core lightning fix once
Thanks
^ Updated with what I know
I think we also assume the rest plugin is installed, right @ek?
https://docs.corelightning.org/docs/rest
Yes but it's built-in since v23.08 so after v23.08, one only needs to add the options to the start command, see configuration.
The certificate is the same as the one for gRPC which should be at
~/.lightning/mainnet/ca.pem.Can you see it in there @siggy47?
~is your home folder. Yourhsm_secretshould also be in that folder (the most important file to recover a CLN node).I'll check. I was given the file certificate.pem by Start9 support. This may solve it.
btw if you're going to use tor you shouldn't need the certificate but you need to use
--clnrest-protocol httpI am using tor, so how do I apply that?
Someone else I think, haven't started tinkering with CLN yet.
Thanks
Here's how I got Start9+CLN+SN working: #863903
Thanks! I used your post to get started along with another one. I'm so glad you replied, because I already have downloaded the Start9 ca. I am pretty ignorant about this stuff, and assumed the core lightning service would have its own ca that I would need to use. Thanks for clearing this up.