ios app使用uni.configMTLS配置自签名证书,安卓正常。但是IOS报错
request:fail abort statusCode:-1 此服务器的证书无效。你可能正在连接到一个伪装成fanshang.jpddc.com”的服务器,这会威胁到你的机密信息的安全。(-1202)
uni.configMTLS({
certificates: [{
'host': 'fanshang.jpddc.com',
'client': "/static/client.p12",
'clientPassword': 'xxx',
'server':['/static/server.cer']
}],
success ({code}) {
console.log("配置结果=>"+code);
},
fail(e) {
console.log("失败:"+e);
},
complete() {
console.log("执行完毕");
}
});
有哪位大哥遇见过这种问题?咋解决的?