往阿里OSS上传文件报错None of the TrustManagers trust this certificate chain

在升级阿里OSS客户端版本后,遇到上传文件时的SSLHandshakeException,错误提示为None of the TrustManagers trust this certificate chain。问题源于新版本与证书链不匹配。暂时通过降级客户端版本至3.8.1来规避此问题。
摘要由CSDN通过智能技术生成

Caused by: com.aliyun.oss.ClientException: None of the TrustManagers trust this certificate chain
[ErrorCode]: SslException
[RequestId]: Unknown
at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:74)
at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:142)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:149)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:85)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:134)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:192)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:153)
at com.aliyun.oss.internal.OSSMultipartOperation.initiateMultipartUpload(OSSMultipartOperation.java:257)
at com.aliyun.oss.OSSClient.initiateMultipartUpload(OSSClient.java:960)
at cn.amberdata.boot.blobstore.spring.boot.starter.blobstore.oss.OSSBlobStore.setStream(OSSBlobStore.java:71)
… 80 more
Caused by: javax.net.ssl.SSLHandshakeException: None of the TrustManagers trust this certificate chain
at sun.security.ssl.Alert.createSSLException(Alert.java:131)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:324)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:267)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:262)
at sun.security.ssl.CertificateMessage T 12 C e r t i f i c a t e C o n s u m e r . c h e c k S e r v e r C e r t s ( C e r t i f i c a t e M e s s a g e . j a v a : 654 ) a t s u n . s e c u r i t y . s s l . C e r t i f i c a t e M e s s a g e T12CertificateConsumer.checkServerCerts(CertificateMessage.java:654) at sun.security.ssl.CertificateMessage T12CertificateConsumer.checkServerCerts(CertificateMessage.java:654)atsun.security.ssl.CertificateMessageT12CertificateConsumer.onCertificate(CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage T 12 C e r t i f i c a t e C o n s u m e r . c o n s u m e ( C e r t i f i c a t e M e s s a g e . j a v a : 369 ) a t s u n . s e c u r i t y . s s l . S S L H a n d s h a k e . c o n s u m e ( S S L H a n d s h a k e . j a v a : 377 ) a t s u n . s e c u r i t y . s s l . H a n d s h a k e C o n t e x t . d i s p a t c h ( H a n d s h a k e C o n t e x t . j a v a : 444 ) a t s u n . s e c u r i t y . s s l . H a n d s h a k e C o n t e x t . d i s p a t c h ( H a n d s h a k e C o n t e x t . j a v a : 422 ) a t s u n . s e c u r i t y . s s l . T r a n s p o r t C o n t e x t . d i s p a t c h ( T r a n s p o r t C o n t e x t . j a v a : 182 ) a t s u n . s e c u r i t y . s s l . S S L T r a n s p o r t . d e c o d e ( S S L T r a n s p o r t . j a v a : 152 ) a t s u n . s e c u r i t y . s s l . S S L S o c k e t I m p l . d e c o d e ( S S L S o c k e t I m p l . j a v a : 1397 ) a t s u n . s e c u r i t y . s s l . S S L S o c k e t I m p l . r e a d H a n d s h a k e R e c o r d ( S S L S o c k e t I m p l . j a v a : 1305 ) a t s u n . s e c u r i t y . s s l . S S L S o c k

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_37670007

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值