“TLS requested but server does not support TLS” error with Google Cloud SQL (2nd generation) from Google App Engine?

匿名 (未验证) 提交于 2019-12-03 01:25:01

问题:

I'm running into an issue in re-using my connection string (resolved here ... Cannot connect to Google Cloud SQL using SSL + Golang from Google App Engine ...) from connecting to a Google Cloud SQL generation one instance while trying to connect to a generation two instance. I'm receiving this error: TLS requested but server does not support TLS

I can't figure out how to get around this, and the documentation is pretty scarce.

I caught the fact that Instance connection name follows a different structure on generation two, but that doesn't seem like the issue. Has anyone solved this? I'm connecting from Golang.

回答1:

MySQL level SSL is not currently supported between App Engine Standard Environment and Cloud SQL Second Generation instances.

Communication between App Engine Standard Environment and Cloud SQL is already encrypted so using MySQL level SSL does not add a lot of value, though I can understand that doing application level SSL can add some peace of mind since what happens between Cloud SQL and App Engine is opaque.

I'll try to see if this is something we can change.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!