可以看看官方文档了,这个 https://docs.pingcap.com/zh/tidb/v6.5/enable-tls-between-clients-and-servers#为-tidb-客户端服务端间通信开启加密传输