Error Returned When Calling PD API

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

Original topic: 调用PD API返回报错

| username: TiDBer_wX9akOFm

[TiDB Usage Environment] Production Environment
[TiDB Version] v7.5.0
[Encountered Issue: Problem Phenomenon and Impact]
[Resource Configuration] Using pdctl to query PD API, it keeps returning errors, not sure what the reason is
[Attachment: Screenshot/Log/Monitoring]

| username: hey-hoho | Original post link

Did you enable TLS?

| username: DBAER | Original post link

The corresponding PD node is normal. Can you check the logs for any information?

| username: xfworld | Original post link

Compare the actual service ports to see if they are open on this machine…

| username: TiDBer_wX9akOFm | Original post link

Yes, TLS is enabled. Please advise on how to access it normally, thank you.
enable_tls: true

| username: TiDBer_wX9akOFm | Original post link

This is accessed on the machine where PD is located, with no port restrictions.

| username: TiDBer_wX9akOFm | Original post link

At present, there is no effective information.

| username: DBAER | Original post link

When using TLS, the documentation requires specifying the authentication files.

| username: TiDBer_wX9akOFm | Original post link

Adding the TLS-related parameters has resolved the access issue. Thank you.