© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago•
3 replies
ben

Worker mTLS

Hi there! So I've setup mTLS on an origin and it's working fine through
curl
curl
, and I followed the steps here https://developers.cloudflare.com/workers/runtime-apis/mtls as I show in the screenshots, but for some reason it isn't working. Any help would be appreciated!

export interface Env {
    PRIV_API: Fetcher;
}

export default {
    async fetch(
        request: Request,
        env: Env,
        ctx: ExecutionContext
    ): Promise<Response> {
        return await env.PRIV_API.fetch("https://priv-api.gpt-ish.com")
    },
};
export interface Env {
    PRIV_API: Fetcher;
}

export default {
    async fetch(
        request: Request,
        env: Env,
        ctx: ExecutionContext
    ): Promise<Response> {
        return await env.PRIV_API.fetch("https://priv-api.gpt-ish.com")
    },
};
image.png
image.png
image.png
mTLS · Cloudflare Workers docs
When using HTTPS, a server presents a certificate for the client to authenticate in order to prove their identity. For even tighter security, some …
mTLS · Cloudflare Workers docs
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

worker mTLS
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
worker mTLS CA
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
worker mTLS fetch localhost
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Cannot delete mtls-certificate
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
13mo ago