How to configure TiSpark after enabling TLS for the cluster?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 集群开启TLS后TiSpark该怎么配置?

| username: Daniel-W

[TiDB Usage Environment] Testing
[TiDB Version] V6.5
Has anyone enabled cluster TLS and used TiSpark?
How should TiSpark be configured after enabling TLS?