Home > Backend Development > Golang > Why am I getting the 'TLS requested but server does not support TLS' error when connecting to Cloud SQL from App Engine?

Why am I getting the 'TLS requested but server does not support TLS' error when connecting to Cloud SQL from App Engine?

DDD
Release: 2024-11-22 02:39:16
Original
437 people have browsed it

Why am I getting the

Connecting to Google Cloud SQL (2nd Generation) from Google App Engine

When attempting to connect to a Google Cloud SQL 2nd generation instance from Google App Engine using a previously configured connection string, you may encounter the following error: "TLS requested but server does not support TLS."

The cause of this error is the lack of support for MySQL level SSL between App Engine Standard Environment and Cloud SQL 2nd generation instances. App Engine and Cloud SQL already establish an encrypted connection, rendering MySQL level SSL unnecessary and ineffective in this scenario.

While application level SSL can provide additional assurance, the unavailability of MySQL level SSL between App Engine Standard Environment and Cloud SQL 2nd generation instances remains a limitation. Currently, this behavior cannot be circumvented or modified from the user end.

To address this issue, consider the following:

  • App Engine and Cloud SQL's encrypted connection provides a secure channel for communication, obviating the need for additional encryption via MySQL level SSL.
  • Stay informed about future updates or alternative approaches that may be implemented to accommodate MySQL level SSL support between these platforms.

The above is the detailed content of Why am I getting the 'TLS requested but server does not support TLS' error when connecting to Cloud SQL from App Engine?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template