TLS/SSL certificates
All traffic to Aiven services is always protected by TLS. It ensures that third parties can't eavesdrop or modify the data while in transit between Aiven services and the clients accessing them.
Every Aiven project has its own private Certificate Authority (CA) which is used to sign certificates that are used internally by the Aiven services to communicate between different cluster nodes and to Aiven management systems.
Some service types uses the Aiven project's CA for external connections. To access these services, download the CA certificate and configure it on your browser or client.
For other services a browser-recognized CA is used, which is normally already marked as trusted in browsers and operating systems, so downloading the CA certificate is not normally required.
All the services in a project share the same Certificate Authority (CA).
Certificate requirements
Most of our services use a browser-recognized CA certificate, but there are exceptions:
- Aiven for PostgreSQL® requires the Aiven project CA certificate
to connect when using
verify-caorverify-fullassslmode. The first mode requires the client to verify that the server certificate is actually emitted by the Aiven CA, while the second provides maximum security by performing HTTPS-like validation on the hostname as well. The defaultsslmode=requireensures TLS is used when connecting to the database, but does not verify the server certificate. For more information, see the PostgreSQL documentation - Aiven for MySQL® requires the Aiven project CA certificate to connect when using
VERIFY_CAorVERIFY_IDENTITYas the SSL mode.VERIFY_CArequires the client to verify that the server certificate is signed by the Aiven CA, whileVERIFY_IDENTITYalso validates the hostname. For more information, see the MySQL documentation. - Aiven for Apache Kafka® supports different authentication methods:
- Client certificate. The client authenticates with a client certificate and key. This method requires the Aiven project CA certificate, the client certificate, and the client key.
- SASL over SSL. The client authenticates with a service username and password.
Communication is encrypted with the project CA certificate by default. You can
enable the
letsencrypt_saslsetting to use a public CA instead of the project CA. For details, see Enable and configure SASL authentication.
- Aiven for Valkey™ uses a browser-recognized (Let's Encrypt) certificate by default, so no CA certificate download is required. Services created before this certificate mode was enabled still use the Aiven project CA certificate. If the Overview page for your service offers a CA certificate to download, your service uses the project CA. There's no self-service option to use the project CA certificate for a service that uses a browser-recognized certificate. To request this, open a support ticket. For details, see Manage SSL connectivity in Aiven for Valkey™. If your service uses the project CA certificate, it also goes through periodic certificate rotation like other services that use this CA.
You can download the project CA certificates from the Overview page of your service. For steps, see Download the project CA certificates.
Some older services use the Aiven project CA certificate. To switch to a browser-recognized certificate, open a support ticket.
Certificate rotation
To keep certificates secure, Aiven periodically rotates the project CA certificate, even though its listed expiration date can be many years away. A rotation can happen because the certificate is approaching expiration, or for other operational or security reasons. All services in a project share the same CA, so a rotation happens at the project level, but each service picks up the new certificate during its own maintenance window, using the same maintenance process as other updates. Because of this, services in the same project can start trusting the new certificate at different times.
During a rotation, your service trusts both the current and the new CA certificate.
This overlap is sometimes called a certificate bundle. This matters if your client
verifies the server certificate against a specific CA. Examples include
PostgreSQL's verify-ca or verify-full modes, MySQL's VERIFY_CA or
VERIFY_IDENTITY modes, and an older Aiven for Valkey™ service that still uses
the project CA certificate. In these cases, update your client to trust the new
certificate in the bundle before the rotation completes. Otherwise, your client
can't verify the server certificate and the connection fails.
Aiven sends an email notification to your project and service contacts before a certificate rotation. Confirm that your project and service contacts are up to date so that you receive these notifications.
Download CA certificates
If your service needs a CA certificate, download one:
- Open your service's Overview page.
- In the Connection information section, find CA Certificate and click Download.
You can also use the avn service user-creds-download CLI:
avn service user-creds-download --username <username> <service-name>
Related pages