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
往阿里OSS上传文件报错None of the TrustManagers trust this certificate chain
最新推荐文章于 2024-05-06 09:24:38 发布
在升级阿里OSS客户端版本后,遇到上传文件时的SSLHandshakeException,错误提示为None of the TrustManagers trust this certificate chain。问题源于新版本与证书链不匹配。暂时通过降级客户端版本至3.8.1来规避此问题。
摘要由CSDN通过智能技术生成