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

Someone else I think, haven't started tinkering with CLN yet.

reply

Thanks

reply

Thanks

reply
36 sats \ 8 replies \ @k00b 4 Mar

^ Updated with what I know

reply
0 sats \ 7 replies \ @k00b 4 Mar

I think we also assume the rest plugin is installed, right @ek?

https://docs.corelightning.org/docs/rest

reply
146 sats \ 6 replies \ @ek 4 Mar

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. Your hsm_secret should also be in that folder (the most important file to recover a CLN node).

reply

I'll check. I was given the file certificate.pem by Start9 support. This may solve it.

reply
36 sats \ 4 replies \ @ek 4 Mar

btw if you're going to use tor you shouldn't need the certificate but you need to use --clnrest-protocol http

reply

I am using tor, so how do I apply that?

reply
36 sats \ 2 replies \ @ek 4 Mar

oh no, why did I mention this option haha

I unfortunately don't have experience with Start9, but I guess Start9 gives you a way to configure CLN. If so, it should say 'CLNRest protocol' somewhere in the CLN config. It needs to be set to HTTP if you want to use tor without a certificate.

But you can also use tor, provide a certificate and not change the config, your choice.