uni.configMTLS({
//无效400 No required SSl certificate was sent,跟浏览器不安装证书返回错误一样
certificates: [{
'host': 'xx.xxxx.com.cn:9008',
'client': '/static/client.p12',
'clientPassword': '*******',
'server': ['/static/client.cer'],
}],
success({code}) {
console.log('证书装载成功code', code)
},
fail(e) {
console.log('证书配置失败')
},
complete(res) {
console.log('证书配置完成'+JSON.stringify(res))
}
});
鲜橙多1018
- 发布:2023-11-16 15:05
- 更新:2023-11-17 09:28
- 阅读:350
1 个回复
鲜橙多1018 (作者)
证书必须是CA机构颁发的吗?