Hi Sahan Jayasinghe
Thanks for reaching out to Microsoft Q&A.
As per the latest updates - To maintain security and compliance standards, we'll begin changing the root certificates for Azure Database for MySQL Flexible Server after 31 July 2025.
The current root certificate DigiCert Global Root CA will be replaced by two new ones:
- DigiCert Global Root G2
- Microsoft RSA Root Certificate Authority 2017
Kindly follow this document on how to merge the CA certificates - https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-root-certificate-rotation
How to update the root certificate store on your client
To ensure that your applications can connect to Azure Database for MySQL after the root certificate rotation, you need to update the root certificate store on your client. This is necessary if you're using SSL/TLS with root certificate verification.
The following steps guide you through the process of updating the root certificate store on your client:
Download the three root certificates. If you have installed the DigiCert Global Root CA certificate, you can skip the first download:
- Add the downloaded certificates to your client certificate store. The process varies depending on the client type
keytool -importcert -alias MySqlFlexServerCACert2 -file digiCertGlobalRootG2.crt.pem -keystore truststore -storepass password -noprompt
keytool -importcert -alias MicrosoftRSARootCert2017 -file MicrosoftRSARootCertificateAuthority2017.crt -keystore truststore -storepass password -noprompt
```
Then replace the original keystore file with the newly generated one:
- `System.setProperty("javax.net.ssl.trustStore","path_to_truststore_file");`
- `System.setProperty("javax.net.ssl.trustStorePassword","password");`
keytool -importcert -alias MicrosoftRSARootCert2017 -file MicrosoftRSARootCertificateAuthority2017.crt -keystore truststore -storepass password -noprompt
```
There is no need change the `javax.net.ssl.trustStore` and `javax.net.ssl.trustStorePassword` properties if you are updating an existing keystore.
(Root CA1:DigiCertGlobalRootCA.crt.pem)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Root CA2: DigiCertGlobalRootG2.crt.pem)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Root CA3: .crt.pem)
-----END CERTIFICATE-----
```
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.