上传文件sts接口,请求https,java代码报SSL握手异常如何处理?
已完成上传文件sts接口,请求https,java代码报SSL握手异常如何处理?
-
我们通过修改代码,去掉了httpclient的SSL握手认证,现在报如下错误,是不支持这样的操作吗?
======== log-MinIOServiceImpl-getCredentials() ==========
java.security.ProviderException: STS service failed with HTTP status code 403
at io.minio.credentials.AssumeRoleBaseProvider.fetch(AssumeRoleBaseProvider.java:85)
at com.dji.sample.component.oss.service.impl.MinIOServiceImpl.getCredentials(MinIOServiceImpl.java:54)
at com.dji.sample.component.oss.service.impl.OssServiceContext.getCredentials(OssServiceContext.java:43)
at com.dji.sample.component.oss.service.impl.OssServiceContext$$FastClassBySpringCGLIB$$f16b10f0.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:58)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)
at com.dji.sample.component.oss.service.impl.OssServiceContext$$EnhancerBySpringCGLIB$$385d2efb.getCredentials(<generated>)
at com.dji.sample.storage.service.impl.S
请先登录再写评论。
评论
5 条评论