Shared pooler certificate chain fails strict TLS verification: intermediate CA missing Key Usage
Bug report
- [ x] I confirm this is a bug with Supabase, not with my own application.
- [ x] I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
The certificate chain presented by the hosted shared transaction pooler fails strict X.509 certificate verification because Supabase Intermediate 2021 CA has no Key Usage extension.
Affected endpoint observed:
aws-1-eu-west-2.pooler.supabase.com:6543With the Supabase dashboard-provided root CA trusted, and certificate and hostname verification enabled, a Python 3.13 / asyncpg connection fails with:
[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed:
CA cert does not include key usage extension
(_ssl.c:1028)A separate credential-free PostgreSQL STARTTLS diagnostic identifies the intermediate certificate at depth 1 as the cause:
Error: 92
Depth: 1
Certificate: Supabase Intermediate 2021 CA
Reason: CA cert does not include key usage extensionThe intermediate has critical Basic Constraints: CA:TRUE, but lacks Key Usage. The root CA does have the expected CA Key Usage extension.
Python 3.13 enables VERIFY_X509_STRICT by default in ssl.create_default_context(), exposing this certificate-conformance issue even when the correct root CA is configured.
The failure occurs before database authentication or SQL execution. It can be demonstrated without application code, database credentials or a project-specific connection string.
To Reproduce
Obtain
prod-ca-2021.crtthrough the SSL certificate download link in the authenticated Supabase dashboard. Save it locally asprod-ca-2021.crt.Use OpenSSL with PostgreSQL STARTTLS support. Our recorded diagnostic used OpenSSL 3.6.3.
Perform a credential-free TLS diagnostic against the shared pooler, using the original hostname for both SNI and hostname verification.
A minimal reproduction command using the relevant verification options is:
HOST="aws-1-eu-west-2.pooler.supabase.com"
openssl s_client \
-starttls postgres \
-connect "${HOST}:6543" \
-servername "${HOST}" \
-verify_hostname "${HOST}" \
-CAfile ./prod-ca-2021.crt \
-no-CApath \
-no-CAstore \
-x509_strict \
-trusted_first \
-partial_chain \
-purpose sslserver \
-auth_level 2 \
-min_protocol TLSv1.2 \
-verify_return_error \
-showcerts \
</dev/nullThis example is abbreviated from the recorded diagnostic configuration. The full executed command and output are retained and can be supplied.
- Observe the strict-verification failure.
Our full recorded diagnostic on 23 September 2026 returned process exit code 1, with verification error 92 at depth 1. It sent only the PostgreSQL SSLRequest/TLS negotiation, with no database startup or authentication payload.
- Inspect the intermediate certificate’s extensions. It declares
CA:TRUEbut has no Key Usage extension.
Recorded intermediate identity:
Subject: Supabase Intermediate 2021 CA
Issuer: Supabase Root 2021 CA
DER SHA-256:
303b0a59bbc8d77e967fbed20b3fe68ec5d7d391c3081ece9936efceef0a55eaExpected behavior
The shared pooler should present a supported certificate chain that passes strict X.509 verification and hostname verification under Supabase’s published trust anchor.
Clients using Python 3.13’s default verified SSL context should not need to relax certificate-conformance checks to connect.
If a different provider-supported strict-conforming chain or configuration is already available, please identify it.
Screenshots
Not applicable: this is a TLS handshake failure, not a browser/UI issue.
The relevant error text is included above. Sanitised command output and the public certificate files are available.
System information
- OS: macOS.
- Python: 3.13.5.
- Database driver: asyncpg 0.31.0.
- OpenSSL: 3.6.3, 9 Jun 2026, reported by both Python and the OpenSSL CLI.
- Connection: hosted shared transaction pooler, port 6543.
- SSL configuration: explicit Python SSLContext with
CERT_REQUIRED,check_hostname=True, and TLS 1.2 minimum. - Recorded verification flags: 557088 (
VERIFY_X509_STRICT,VERIFY_X509_TRUSTED_FIRST,VERIFY_X509_PARTIAL_CHAIN). - Browser: not applicable.
- supabase-js: not used.
- Node.js: not used.
- Observation date: 23 September 2026 UTC.
Additional context
Verification comparison
Using the retained certificates, independently obtained Supabase root, exact hostname and otherwise matching verification settings:
| Check | Result |
|---|---|
| Strict verification | Fails with error 92 at depth 1 |
| Only strict mode omitted | Chain verification passes |
| Strict mode omitted, incorrect hostname supplied | Fails with hostname mismatch |
One separately authorised connection succeeded after clearing only VERIFY_X509_STRICT, while retaining certificate and hostname verification. It negotiated TLS 1.3.
That was a limited compatibility workaround, not a certificate-chain repair or our preferred permanent solution. Disabling strict mode relaxes multiple certificate-conformance checks, not just the missing Key Usage condition.
Public certificate fingerprints
Leaf: *.pooler.supabase.com
03709ca44d1b06e4504da0a83b6ca065761edc704cd5634bcc3894fd5c7b3248
Intermediate: Supabase Intermediate 2021 CA
303b0a59bbc8d77e967fbed20b3fe68ec5d7d391c3081ece9936efceef0a55ea
Root: Supabase Root 2021 CA
807025ad50d4ed219d2c9c7d299c004f824eb00cf7f65afef607d07b72e6cafaThe root fingerprint matches the independently obtained dashboard-provided CA. No intermediate certificate was promoted into a trust anchor.
Scope of the finding
This report concerns the certificate chain observed on the endpoint above. We have not verified every pooler endpoint or every chain the service may serve.
No authentication bypass, credential interception or data exposure has been demonstrated.
Please confirm whether this certificate issue is already tracked, whether a strict-conforming chain is available, and whether remediation will require clients to update the published root CA.
Relevant documentation:
- Python SSL defaults: https://docs.python.org/3.13/library/ssl.html
- OpenSSL diagnostic options: https://docs.openssl.org/3.6/man1/openssl-s_client/
Source: supabase/supabase