Closed paulhauner closed 1 year ago
@paulhauner To use self-signed certificates you should:
NODE_EXTRA_CA_CERTS=<absolute-path-to-cert>.cert
environment variable for Docker containerExample docker-compose.yml
:
...
volumes:
- ./custom.cert:/ca/custom.cert
environment:
- NODE_EXTRA_CA_CERTS=/ca/custom.cert
- NODE_ENV=production
...
Created improvement https://github.com/lidofinance/lido-nestjs-modules/issues/92 for more logging
Closing this issue.
Heyo 👋
I'm getting the following error:
I understand this error means my
PROVIDERS_URLS
are unreachable. I know that if I swap out my provider to Infura then this message goes away. However, I would to understand why my URL does not work. My setup is as follows:PROVIDERS_URLS
0x5
as the chain ID.CHAIN_ID
is 5./etc/ssl/certs/ca-certificates.crt
inside the KAPI docker image (Alpine Linux).curl
the endpoint from inside the KAPI Docker image (without-k
or--insecure
).I suspect the self-signed certificate is the issue here, however it's challenging to tell because KAPI does not tell me why the endpoint failed.
So, I have two questions please:
Thanks 🙏