tencent cloud

Tencent Cloud Observability Platform

TLSConfig

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-03-11 19:41:09
TLSConfig is the tlsConfig configuration item in the global parameter configuration Option.

Field

Field
Type
Description
insecureSkipVerify
boolean
Control whether the client verifies the server's certificate chain and host name; if true, crypto/tls accepts any certificate from the server as well as any host name within that certificate.
rootCAs
Array
Root certificates.
certificates
Array
The list of client certificates.
serverName
string
Match the host name in the certificate.

Samples

Use TLSConfig:
export const option = {
tlsConfig: {
'localhost': {
insecureSkipVerify: false,
rootCAs: [open('ca.crt')],
certificates: [
{
cert: open('client.crt'),
key: open('client.key')
}
]
serverName: "xxx.com"
}
}
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백