Hyperdrive now supports custom TLS/SSL certificates for MySQL
Hyperdrive now supports custom TLS/SSL certificates for MySQL databases, including server certificate verification (VERIFY_CA, VERIFY_IDENTITY) and client certificate (mTLS) authentication. This brings feature parity with PostgreSQL support, allowing secure database connections with certificate-based authentication.
Hyperdrive now supports custom TLS/SSL certificates for MySQL databases, bringing the same certificate options previously available for PostgreSQL to MySQL connections.
You can now configure:
- Server certificate verification with
VERIFY_CAorVERIFY_IDENTITYSSL modes to verify that your MySQL database server's certificate is signed by the expected certificate authority (CA). - Client certificates (mTLS) for Hyperdrive to authenticate itself to your MySQL database with credentials beyond username and password.
Create a Hyperdrive configuration with custom certificates for MySQL:
# Upload a CA certificate
npx wrangler cert upload certificate-authority --ca-cert your-ca-cert.pem --name your-custom-ca-name
# Create a Hyperdrive with VERIFY_IDENTITY mode
npx wrangler hyperdrive create your-hyperdrive-config \
--connection-string="mysql://user:password@hostname:port/database" \
--ca-certificate-id <CA_CERT_ID> \
--sslmode VERIFY_IDENTITY
For more information, refer to SSL/TLS certificates for Hyperdrive and MySQL TLS/SSL modes.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.