Home >Backend Development >Golang >Why Does My Google App Engine App Get 'TLS Requested But Server Does Not Support TLS' When Connecting to Cloud SQL Second Generation?

Why Does My Google App Engine App Get 'TLS Requested But Server Does Not Support TLS' When Connecting to Cloud SQL Second Generation?

Patricia Arquette
Patricia ArquetteOriginal
2024-12-01 14:55:10912browse

Why Does My Google App Engine App Get

Troubleshooting TLS Errors When Connecting to Google Cloud SQL (2nd Generation) from Google App Engine

When attempting to migrate from Google Cloud SQL's first generation to the second generation, developers might encounter the following error:

TLS requested but server does not support TLS

This error arises when trying to reuse connection strings previously used with generation one instances while connecting to generation two instances.

Cause:

The error is caused by the difference in the Instance connection name format between generation one and generation two instances. Furthermore, MySQL level SSL is not currently supported between App Engine Standard Environment and Cloud SQL Second Generation instances.

Solution:

There is no current workaround for this issue. Communication between App Engine Standard Environment and Cloud SQL is already encrypted, rendering MySQL level SSL redundant. Therefore, relying on the default encryption provided by App Engine is recommended.

The above is the detailed content of Why Does My Google App Engine App Get 'TLS Requested But Server Does Not Support TLS' When Connecting to Cloud SQL Second Generation?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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