Home > Article > Backend Development > Why Am I Getting the Error 'TLS Requested but Server Does Not Support TLS' When Connecting to Cloud SQL (2nd Gen) from Google App Engine?
Troubleshooting "TLS Requested but Server Does Not Support TLS" Error with Google Cloud SQL (2nd Gen) from Google App Engine
When establishing a connection to a Google Cloud SQL (2nd generation) instance from Google App Engine, developers may encounter an error indicating "TLS requested but server does not support TLS."
Understanding the Issue
The error message originates from the difference in MySQL SSL handling between Cloud SQL (1st gen) and Cloud SQL (2nd gen) instances. While 1st generation instances supported MySQL SSL, 2nd generation instances do not.
Current Solution
Currently, MySQL level SSL is unavailable when connecting to Cloud SQL (2nd gen) instances from App Engine Standard Environment. Communication between App Engine and Cloud SQL is inherently encrypted, eliminating the need for MySQL level SSL.
Developer Considerations
While application level SSL can provide additional reassurance, it is not essential due to the existing encryption layer between App Engine and Cloud SQL. Developers should be aware of this limitation and adjust their connection strategies accordingly.
Future Enhancements
The Google Cloud team is evaluating options to support MySQL level SSL for App Engine Standard Environment connections to Cloud SQL (2nd gen) instances. As updates become available, they will be communicated through official channels.
The above is the detailed content of Why Am I Getting the Error 'TLS Requested but Server Does Not Support TLS' When Connecting to Cloud SQL (2nd Gen) from Google App Engine?. For more information, please follow other related articles on the PHP Chinese website!