I get 'undefined' when i get a certificate from the mtls_certificates

I am trying to call/fetch a url and pass along a certificate as described here: https://developers.cloudflare.com/workers/runtime-apis/bindings/mtls/ I uploaded the certificate to my worker and i already added the following to the wrangler.toml mtls_certificates = [ { binding = "MY_CERT", certificate_id = "0805d62bxxxxxcdfdd5d6c" } ] however the return await environment.MY_CERT.fetch(endpoint_url) not working and when i console out the MY_CERT I get "undefined"
Cloudflare Docs
mTLS · Cloudflare Workers docs
Configure your Worker to present a client certificate to services that enforce an mTLS connection.
1 Reply
Walshy
Walshy4mo ago
what's your full toml?
Want results from more Discord servers?
Add your server