I need my core lightning node’s certificate. I can’t seem to find the .pem file. Any help would be appreciated.
Which certificate and for what? I’m not really sure what you need help with as there’s no context as to what you’re trying to do to be able to point you in the right direction.
I am attempting to connect my node to an outside app which requires a cert. It can be hex or base64 encoded. I have followed directions on the outside app to obtain the cert. This is how I have been told to obtain the cert, but I can’t get it to work:
sudo nano ~/core-lightning/data/c-lightning-rest/certs/certificate.pem
You can find that here…
/usr/local/libexec/c-lightning/plugins/c-lightning-REST/certs/certificate.pem
…after entering into the c-lightning.embassy
container - which we generally don’t recommend you do and we don’t support.
Any reason why you’re avoiding getting the REST details from the StartOS UI itself?
Are you aware of the risks of granting outside apps access to your funds?
These guides here might help.
https://docs.start9.com/0.3.5.x/service-guides/lightning/connecting-cln
Re risks, I know the people personally. re the UI, I certainly would prefer finding it there! I didn’t see it. I’ll check it out now. Thanks for your help.
I see a macaroon available on the u/i. I don’t see a certificate. Are they one and the same?
This is an example of what you typically need to connect to anything…
https://docs.start9.com/0.3.5.x/service-guides/lightning/zeus-cln-direct
If you need something more than it’s available for all other REST connections, I suppose you would have to dig around in the command line.
Typically you’d use a macaroon to connect to something, a TLS cert would be something else, and I’m not sure would work without clearnet.
Okay. Thanks again for your help.