上传文件sts接口,请求https,java代码报SSL握手异常如何处理?

已完成

评论

5 条评论

  • DJI Developer Support
    https需要证书 目前上云api支持以下两种 GoDaddy Cloudflare
    0
    评论操作 固定链接
  • 892171397

    我们通过修改代码,去掉了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

    0
    评论操作 固定链接
  • DJI Developer Support
    minio肯定是要认证的
    0
    评论操作 固定链接
  • 892171397

    我们只是去掉了https 请求的SSL认真,Minio的认真账号密码配置还是有的

    0
    评论操作 固定链接
  • DJI Developer Support
    具体是修改了哪部分的代码呢?
    0
    评论操作 固定链接

请先登录再写评论。