ClaudeCloudflare Developer PlatformMar 19, 2026, 12:00 AM

Hyperdrive - Hyperdrive now supports custom TLS/SSL certificates for MySQL

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

claudeenmodel: claude-sonnet-4-20250514

Hyperdrive adds custom TLS/SSL certificate support for MySQL

Key Points

  • Custom TLS/SSL certificates now supported for MySQL
  • Server certificate verification with VERIFY_CA/VERIFY_IDENTITY modes
  • Client certificate (mTLS) authentication available

Summary

Cloudflare Hyperdrive now supports custom TLS/SSL certificates for MySQL databases, extending the certificate functionality previously available only for PostgreSQL connections.

Key Points

  • Server certificate verification: Configure VERIFY_CA or VERIFY_IDENTITY SSL modes to validate MySQL server certificates against expected certificate authorities
  • Client certificate authentication (mTLS): Enable Hyperdrive to authenticate to MySQL databases using client certificates in addition to username/password credentials
  • Wrangler CLI integration: Use wrangler cert upload to manage CA certificates and wrangler hyperdrive create with SSL configuration options
  • Parity with PostgreSQL: MySQL connections now have the same certificate security options as PostgreSQL databases

Full Translation

Translations

A translation section that keeps the flow of the original article.

claudejamodel: claude-sonnet-4-20250514

Hyperdrive - HyperdriveがMySQLのカスタムTLS/SSL証明書をサポート

HyperdriveがMySQLのカスタムTLS/SSL証明書をサポート

2026年3月19日

HyperdriveがMySQLデータベース用のカスタムTLS/SSL証明書をサポートするようになりました。これにより、以前PostgreSQLで利用可能だった証明書オプションと同じ機能がMySQL接続でも使用できるようになります。

以下の設定が可能になりました:

  • サーバー証明書検証: VERIFY_CAまたはVERIFY_IDENTITYのSSLモードを使用して、MySQLデータベースサーバーの証明書が期待される認証局(CA)によって署名されていることを検証できます。
  • クライアント証明書(mTLS): Hyperdriveがユーザー名とパスワード以外の認証情報を使用してMySQLデータベースに対して自身を認証できます。

MySQLでカスタム証明書を使用したHyperdrive設定の作成

# CA証明書をアップロード
npx wrangler cert upload certificate-authority --ca-cert your-ca-cert.pem --name your-custom-ca-name

# VERIFY_IDENTITYモードでHyperdriveを作成
npx wrangler hyperdrive create your-hyperdrive-config \
  --connection-string="mysql://user:password@hostname:port/database" \
  --ca-certificate-id <CA_CERT_ID> \
  --sslmode VERIFY_IDENTITY

詳細については、SSL/TLS certificates for HyperdriveおよびMySQL TLS/SSL modesを参照してください。