How to make encrypted connections mandatory on Azure MySQL flexible server

2024-02-21T13:32:37.9533333+00:00

I want to make sure all client connections to Azure MySQL flexible server are encrypted.
or I want to reject all unencrypted connections to MySQLDB. Turning on server parameter "require_secure_transport" is not helping. I am still able to connect to this DB instance on an unencrypted connection even with "sslmode" as "No" or "Require" without giving certificate. User's image

Please help me achieve this.

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
726 questions
{count} votes

Accepted answer
  1. TP 79,061 Reputation points
    2024-02-21T14:14:51.91+00:00

    Hi,

    By default Azure Database for MySQL Flexible server enforces TLS for connections (require_secure_transport=ON). In your screenshot, you have Use SSL set to Require, and the popup message says that SSL is being used for the connection.

    To test if the server is rejecting non-SSL connections, please test with Use SSL: set to No. When you click Test connection button you should see popup similar to below:

    qna mysql insecure prohibited

    Please post screenshot of what you see when you have Use SSL: set to No

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful