HBuilderX 版本:4.45
打成wgt包安装在安卓手机里边
配置uni.configMTLS({
certificates: [{
'host': 'jlapp.xxxxx.local',
'client': '/static/client.p12',
'clientPassword': '123456',
'server': ['/static/server.crt'],
}]
});
发送uni.request({
url: 'https://jlapp.xxx.local/eomfront/mbcbMain/mbcbMain/getNetworkStatus',
method: 'GET',
success: (res) => {
console.log(res.data);
},
fail: (err) => {
console.error(err,11111111);
}
});
服务器日志一直报错:*572 client closed connection while waiting for request, client: 10.200.37.201, server: 0.0.0.0:443
1 个回复
8***@qq.com (作者) - 111
*1354 SSL_do_handshake() failed (SSL: error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:SSL alert number 46) while SSL handshaking, client: 10.200.35.64, server: 0.0.0.0:443