For Workers & Pages, what is the name of the domain?
What is the error number?
What is the error message?
What is the issue or error you’re encountering
My Cloudflare Worker cannot fetch data from my AWS Elastic Beanstalk environment when using HTTPS with a self-signed certificate. It works fine with HTTP, but fails with HTTPS, giving a 526 error. I find it particularly confusing that Cloudflare Workers will connect to unsecured HTTP endpoints but refuse to connect to HTTPS endpoints with self-signed certificates. A self-signed certificate at least provides encryption, while HTTP provides none. Is there any workaround or configuration option to allow this?
What steps have you taken to resolve the issue?
What steps have you taken to resolve the issue?
- Created a self-signed certificate with OpenSSL
- Imported the certificate to AWS Certificate Manager
- Attached the certificate to my Elastic Beanstalk environment
- Tried adding insecureHTTPParser: true to fetch options
What are the steps to reproduce the issue?
- Create a Cloudflare Worker that attempts to fetch from an HTTPS endpoint with a self-signed certificate
- Deploy the worker
- Make a request to the worker that triggers a fetch to the self-signed HTTPS endpoint
- Observe the 526 error