在win环境中没有问题,可是吧项目移到linux就出现peer not authenticated 问题,问一下下本人在获取access_token的时候哪里出现了问题。代码如下



解决方案
40
由于获取AccessToken的URL是HTTPS协议的 而你调用的时候没有对应的安全证书
帮你找到一个解决方法:
帮你找到一个解决方法:
Protocol easyHttps = new Protocol("https", new EasySSLProtocolSocketFactory(), 443); Protocol.registerProtocol("https", easyHttps);