tlsSocket.enableTrace()


启用后,TLS 数据包跟踪信息将写入 stderr。这可用于调试 TLS 连接问题。

【When enabled, TLS packet trace information is written to stderr. This can be used to debug TLS connection problems.】

输出的格式与 openssl s_client -traceopenssl s_server -trace 的输出格式相同。虽然它是由 OpenSSL 的 SSL_trace() 函数生成的,但该格式没有文档说明,可能会在没有通知的情况下更改,因此不应依赖它。

【The format of the output is identical to the output of openssl s_client -trace or openssl s_server -trace. While it is produced by OpenSSL's SSL_trace() function, the format is undocumented, can change without notice, and should not be relied on.】