求助: 从阿里云服务器迁移之后,服务器端发请求AccessToken 报错
获取AccessToken的方法时
oapi.dingtalk.com/gettoken?corpid=id&corpsecret=secrect
异常信息:
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1991)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1098)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355)
at jodd.http.net.SocketHttpConnectionProvider.create HttpConnection(SocketHttpConnectionProvider.java:43)
at jodd.http.HttpRequest.open(HttpRequest.java:561)
at jodd.http.HttpRequest.open(HttpRequest.java:548)
at jodd.http.HttpRequest.send(HttpRequest.java:639)
at pk.api.op.dd.DdCorpApi.doGet(DdCorpApi.java:45)
at pk.api.op.dd.DdCorpApi.getAccessToken(DdCorpApi.java:107)
at pk.api.op.dd.DdCorpApi.getAccessToken(DdCorpApi.java:74)
at pk.api.op.dd.DdCorpApi.getJsapiTicket(DdCorpApi.java:136)
at pk.api.en.dd.DdController.js_config(DdController.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.jfinal.aop.Invocation.invoke(Invocation.java:73)
at pk.api.mt.auth.MtAuthInterceptor.intercept(MtAuthInterceptor.java:19)
at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
at pk.api.ag.user.role.AgRoleInterceptor.intercept(AgRoleInterceptor.java:21)
at com.jfinal.aop.Invocation.invoke(Invocation.java:67)
看到博客说需要用阿里的负载均衡申请ssl证书安装,迁移过来的环境并未使用阿里云服务器,也没有使用slb,
然后之前使用阿里云服务器并没有要安装证书或者其他配置什么的
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。