Only the Chinese version of this page is provided currently. The English version will be provided soon.

Certificate

Last updated: 2023-05-09 17:33:19

Certificate 是配置参数 TLSConfig 中的 certificates 配置项。

字段

字段
类型
描述
cert
string
证书
key
string
私钥

样例

使用 Certificate:
export const option = {
tlsConfig: {
'localhost': {
insecureSkipVerify: false,
rootCAs: [open('tool/tls/twoway/ca.crt')],
certificates: [
{
cert: open('tool/tls/twoway/client.crt'),
key: open('tool/tls/twoway/client.key')
}
]
}
}
}