sheng_se
sheng_se
  • 发布:2021-12-20 17:26
  • 更新:2022-06-08 14:16
  • 阅读:539

Uniapp https双向认证问题

分类:uni-app

https请求后台,host参数不管写什么,返回结果都是success,内容为configMTLS:errMsg = configMTLS:ok,code = 0,求教各位大佬,帮忙解决

            aaa(){  
                uni.configMTLS({  
                    certificates: [{  
                        'host': '192.168.191.2',  
                        'client': '/static/client.p12',  
                        'clientPassword': '123456',  
                        'server': ['/static/server.cer']  
                    }],  
                    success (res) {  
                        var description = "";  
                        for (var i in res) {  
                            description += i + " = " + res[i] + "\n";  
                        }  
                        console.log('configMTLS:' + description)  
                    }  
                });  
            }
2021-12-20 17:26 负责人:无 分享
已邀请:
木叶96

木叶96

请问这个问题后来怎么解决的

要回复问题请先登录注册