---
title: "Hyperdrive - Custom CA and mTLS certificates for Hyperdrive over Workers VPC — Cloud Changelog"
description: "Hyperdrive can now connect to private databases over Workers VPC with a custom certificate authority (CA) and client certificate authentication (mutual TL…"
url: "https://cloudchangelog.com/cloudflare/2026-11-18-hyperdrive-vpc-custom-ca-mtls"
updated: "2026-11-20"
---

[Back to feed](https://cloudchangelog.com/feed/2026-W47)

November 18, 2026 · Cloudflare

# Hyperdrive - Custom CA and mTLS certificates for Hyperdrive over Workers VPC

- [Hyperdrive](https://cloudchangelog.com/products/cloudflare/hyperdrive)
- [Databases](https://cloudchangelog.com/search?q=databases)

Hyperdrive can now connect to private databases over [Workers VPC](https://developers.cloudflare.com/workers-vpc/) with a custom certificate authority (CA) and client certificate authentication (mutual TLS, or mTLS). This covers PostgreSQL databases and Amazon RDS instances that present certificates signed by a private CA or the RDS CA bundle, and client certificates with RSA or EC P-256 keys.

Previously, a database that required a custom CA or a client certificate meant routing database traffic over WebSockets through [Cloudflare Access](https://developers.cloudflare.com/cloudflare-one/access-controls/policies/) and [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/). That approach added an Access application, a service token, and WebSocket handling to maintain.

Hyperdrive now connects directly to the database over Workers VPC, without Access.

Attach the certificates to the VPC Service, then create a Hyperdrive configuration from that service:

```
# Upload the private CA and the client certificate
npx wrangler cert upload certificate-authority --ca-cert ./db-ca.pem --name db-ca
npx wrangler cert upload mtls-certificate --cert ./client.pem --key ./client-key.pem --name db-client

# Attach the certificates to the VPC Service for your database
npx wrangler vpc service create my-postgres-db \
  --type tcp \
  --tcp-port 5432 \
  --app-protocol postgresql \
  --hostname <YOUR_DATABASE_HOSTNAME> \
  --tunnel-id <YOUR_TUNNEL_ID> \
  --certificate-authority <CA_CERTIFICATE_ID> \
  --client-certificate <CLIENT_CERTIFICATE_ID> \
  --cert-verification-mode verify_full

# Create the Hyperdrive configuration from the VPC Service
npx wrangler hyperdrive create <YOUR_CONFIG_NAME> \
  --service-id <YOUR_VPC_SERVICE_ID> \
  --database <DATABASE_NAME> \
  --user <DATABASE_USER> \
  --password <DATABASE_PASSWORD> \
  --scheme postgresql
```

You can use a custom CA, a client certificate, or both. Configure VPC Services with Wrangler 4.164.0 or later, the [API](https://developers.cloudflare.com/api/resources/connectivity/subresources/directory/subresources/services/), or Terraform provider 5.29.0 or later. Dashboard support for these settings is not yet available.

For setup details and certificate rotation, refer to [Connect Hyperdrive to a private database using Workers VPC](https://developers.cloudflare.com/hyperdrive/configuration/connect-to-private-database-vpc/) and [Custom CA and client certificates](https://developers.cloudflare.com/workers-vpc/configuration/vpc-services/#custom-ca-and-client-certificates).

Free. Unsubscribe any time.

[Read on developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-11-18-hyperdrive-vpc-custom-ca-mtls/)

## Related updates

- Nov 18, 2026

  [Hyperdrive, Workers VPC - Custom CA and client certificates (mTLS) for Workers VPC](https://cloudchangelog.com/cloudflare/2026-11-18-custom-ca-mtls)
- Apr 9, 2025

  [Hyperdrive now supports custom TLS/SSL certificates](https://cloudchangelog.com/cloudflare/2025-04-09-hyperdrive-custom-certificate-support)
- Apr 29, 2026

  [Hyperdrive support for private databases with Workers VPC](https://cloudchangelog.com/cloudflare/2026-04-29-hyperdrive-vpc-private-databases)
- Feb 2, 2026

  [Amazon CloudFront announces mutual TLS support for origins](https://cloudchangelog.com/a/2026-01-amazon-cloudfront-mutual-tls-for-origins) · AWS
- May 21, 2025

  [Generally Available: Custom certificate authority support in AKS](https://cloudchangelog.com/azure/491885) · Azure

[All Hyperdrive changes](https://cloudchangelog.com/products/cloudflare/hyperdrive)

## Contact

- [YouTube](https://www.youtube.com/@cloudchangelog)
