bnowak
CDCloudflare Developers
•Created by bnowak on 12/25/2023 in #workers-help
Can't get wrangler to work with SSL certs
Ok, so I have a following dev setup:
* nginx reverse proxy as an entry point
* pointed at at a worker
* worker talks to a bunch of microservices depending on a route
* everything wrapped in docker-compose
Since in this setup, worker->microservice communication was over http, I've never hit the problem until I've tried to use Honeycomb observability plugin, which I assume talks over https with the mothership. As soon as I've added the plugin, I've started getting the dreaded TLS error:
Later validated that indeed any https call from within the worker will trigger the error.
What I've tried so far to solve it:
* in my
wrangler.toml
make local_protocol = "https"
* replace my package.json run script wrangler.dev
with NODE_EXTRA_CA_CERTS=/absolute/path/to/fullchain.pem wrangler dev
Does not seem to help, despite the internet search(es) saying it should.
Other useful info:
* wrangler version: ^3.22.1
* local ssl cert is a valid one from Letsncrypt/certbot, and nginx/browser have no issues with it.
* relevant bits of Dockerfile:
Any advice would be appreciated. Thanks1 replies