How to Fix the 'TLS requested but server does not support TLS' Error with Google Cloud SQL (2nd Generation) and App Engine?

Mary-Kate Olsen
Release: 2024-11-21 08:17:09
Original
723 people have browsed it

How to Fix the

Troubleshooting "TLS requested but server does not support TLS" Error with Google Cloud SQL (2nd Generation) and Google App Engine

Reconnecting to Google Cloud SQL using an established connection string may cause issues when transitioning from generation one to generation two instances. App Engine and Cloud SQL employ different connection parameters between these generations, leading to the "TLS requested but server does not support TLS" error.

The Cause:

Generation two Cloud SQL instances do not support MySQL-level SSL communication with App Engine Standard Environment. While communication between App Engine and Cloud SQL is already encrypted, MySQL-level SSL adds minimal value to the security.

The Solution:

At present, there is no direct solution to enable MySQL-level SSL between App Engine Standard Environment and Cloud SQL second generation instances. The App Engine team is exploring the possibility of providing support for this in the future.

Alternative Approach:

One alternative to MySQL-level SSL is to implement transport-level encryption through IP whitelisting or private Google Access. This method ensures secure communication between App Engine and Cloud SQL without relying on SSL. Refer to the Google Cloud SQL documentation for more information on IP whitelisting and private Google Access.

The above is the detailed content of How to Fix the 'TLS requested but server does not support TLS' Error with Google Cloud SQL (2nd Generation) and 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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template