Skip to content

Commit 442d3a2

Browse files
committed
added changelog entry
1 parent 3643554 commit 442d3a2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Hyperdrive now supports custom TLS/SSL certificates
3+
description: You can now configure custom certificates for secure database connections with Hyperdrive, including both server certificate verification and client certificates
4+
products:
5+
- hyperdrive
6+
date: 2025-04-09T17:00:00Z
7+
---
8+
9+
import { Code } from "~/components";
10+
11+
Hyperdrive now supports more SSL/TLS security options for your database connections:
12+
13+
- Configure Hyperdrive to verify server certificates with `verify-ca` or `verify-full` SSL modes and protect against man-in-the-middle attacks
14+
- Configure Hyperdrive to provide client certificates to the database server to authenticate itself (mTLS) for stronger security beyond username and password
15+
16+
Use the new `wrangler cert` commands to create certificate authority (CA) certificate bundles or client certificate pairs:
17+
18+
```bash
19+
# Create CA certificate bundle
20+
npx wrangler cert upload certificate-authority --ca-cert your-ca-cert.pem --name your-custom-ca-name
21+
22+
# Create client certificate pair
23+
npx wrangler cert upload mtls-certificate --cert client-cert.pem --key client-key.pem --name your-client-cert-name
24+
```
25+
26+
Then create a Hyperdrive configuration with the certificates and desired SSL mode:
27+
28+
```bash
29+
npx wrangler hyperdrive create your-hyperdrive-config \
30+
--connection-string="postgres://user:password@hostname:port/database" \
31+
--ca-certificate-id <CA_CERT_ID> \
32+
--mtls-certificate-id <CLIENT_CERT_ID>
33+
--sslmode verify-full
34+
```
35+
36+
Learn more about [configuring SSL/TLS certificates for Hyperdrive](/hyperdrive/configuration/tls-ssl-certificates-for-hyperdrive/) to enhance your database security posture.

0 commit comments

Comments
 (0)