MS SQL Server / Azure SQL: On Mac connection failed with OpenSSL library could not be loaded error

When you try to connect to MS SQL Server / Azure SQL from Mac, you might see the below error and cannot connect to your database.

[08001][Microsoft][ODBC Driver 17 for SQL Server]SSL Provider: [OpenSSL library could not be loaded, make sure OpenSSL 1.0 or 1.1 is installed]

If this is the case, please follow the to fix the issue.