javax.net.ssl.sslhandshakeexception:即使在添加证书之后

7fyelxc5  于 2021-06-30  发布在  Java
关注(0)|答案(0)|浏览(352)

我使用的是weblogic服务器,其密钥库如下:

现在,当我在这台服务器上运行的应用程序试图从另一台服务器下载图像时,它会抛出 javax.net.ssl.SSLHandshakeException: General SSLEngine problem 我已将服务器证书添加到这两者 DemoTrust.jks 以及 JDK CACERTS 使用此链接:添加证书后,它看起来像:

java证书

根据不同帖子的建议,我还添加了startweblogic.cmd
set java\u options=%java\u options%-dweblogic.security.ssl.verbose=true set java\u options=%java\u options%-dweblogic.security.ssl.enable.renegotiation=true set java\u options=%java\u options%-dsun.security.ssl.allowunsafereregotiation=true
我错过什么了吗?有什么建议吗?
编辑1:添加异常stacktrace
vax.net.ssl.sslhandshakeexception:sun.security.ssl.handshaker.checkthrown(握手器)的一般sslengine问题。java:1529)在sun.security.ssl.sslengineimpl.CheckTask抛出(sslengineimpl。java:535)在sun.security.ssl.sslenginempl.writeApprocord(sslenginempl。java:1214)在sun.security.ssl.sslengineimpl.wrap(sslengineimpl。java:1186)在javax.net.ssl.sslengine.wrap(sslengine。java:469)在weblogic.security.ssl.jsseadapter.jasslengine$1.run(jasslengine。java:69)在weblogic.security.ssl.jsseadapter.jasslengine.doaction(jasslengine。java:743)在weblogic.security.ssl.jsseadapter.jasslengine.wrap(jasslengine。java:67)在weblogic.socket.jssefilterimpl.wrapandwrite(jssefilterimpl。java:771)在weblogic.socket.jssefilterimpl.dohandshake(jssefilterimpl。java:119)在weblogic.socket.jssefilterimpl.dohandshake(jssefilterimpl。java:87)在weblogic.socket.jssesocket.startAndShake(jssesocket。java:250)在weblogic.net.http.httpsclient.new(httpsclient。java:577)在weblogic.net.http.httpsclient.new(httpsclient。java:557)在weblogic.net.http.httpsurlconnection.connect(httpsurlconnection。java:265)在org.jsoup.helper.httpconnection$response.execute(httpconnection。java:651)在org.jsoup.helper.httpconnection$response.execute(httpconnection。java:628)在org.jsoup.helper.httpconnection.execute(httpconnection。java:260)在org.jsoup.helper.httpconnection.get(httpconnection。java:249)在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)在sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl)。java:62)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:498)在com.bea.core.repackaged.springframework.aop.support.aoputils.invokejoinpointusingreflection(aoputils。java:333)在com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.invokejoinpoint(reflectivemethodinvocation)。java:190)在com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation。java:157)在com.oracle.pitchfork.intercept.methodInvocationContext.procedue(methodInvocationContext)。java:101)在com.oracle.pitchfork.intercept.jeeinterceptorinterceptor.invoke(jeeinterceptorinterceptor。java:101)在com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation。java:179) 在com.oracle.pitchfork.intercept.methodInvocationContext.procedue(methodInvocationContext。java:101)位于org.jboss.weld.ejb.abstractejbrequestscopeactivationinterceptor.aroundinvoke(abstractejbrequestscopeactivationinterceptor)。java:73)在org.jboss.weld.ejb.sessionbeaninterceptor.aroundinvoke(sessionbeaninterceptor。java:52)在sun.reflect.generatedmethodaccessor235.invoke(未知源)位于sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl)。java:43)在java.lang.reflect.method.invoke(方法。java:498)在com.oracle.pitchfork.intercept.jeeinterceptorinterceptor.invoke(jeeinterceptorinterceptor。java:94)在com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation)。java:179)位于com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.doproceed(delegatingintroductioninterceptor.doproceed)。java:133)在com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.invoke(delegatingintroductioninterceptor。java:121)在com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation。java:179)在com.bea.core.repacked.springframework.aop.framework.jdkDynamicApproxy.invoke(jdkDynamicApproxy。java:213)在com.sun.proxy.$proxy254.execute(未知源代码)在weblogic.ejb.container.internal.sessionlocalmethodinvoker.invoke(sessionlocalmethodinvoker。java:33)位于java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor。java:1149)在java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor。java:624)在java.lang.thread.run(线程。java:748)原因:javax.net.ssl.sslhandshakeexception:sun.security.ssl.alerts.getsslexception(警报)的常规sslengine问题。java:192)在sun.security.ssl.sslenginempl.fatal(sslenginempl。java:1728)在sun.security.ssl.handshaker.fatalse(握手器。java:330)在sun.security.ssl.handshaker.fatalse(握手器。java:322)在sun.security.ssl.clienthandshaker.servercertificate(clienthandshaker。java:1614)在sun.security.ssl.clienthandshaker.processmessage(clienthandshaker。java:216)在sun.security.ssl.handshaker.processloop(handshaker。java:1052)在sun.security.ssl.handshaker$1.run(握手器。java:992)在sun.security.ssl.handshaker$1.run(handshaker。java:989)位于java.security.accesscontroller.doprivileged(本机方法)的sun.security.ssl.handshaker$delegatedtask.run(握手器)。java:1467)在weblogic.socket.jssefilterimpl.dotasks(jssefilterimpl。java:223)在weblogic.socket.jssefilterimpl.dohandshake(jssefilterimpl。java:123) ... 44其他原因:sun.security.validator.validatorexception:pkix路径生成失败:sun.security.provider.certpath.suncertpathbuilderexception:无法在sun.security.validator.pkixvalidator.dobuild(pkixvalidator)中找到请求目标的有效证书路径。java:397)在sun.security.validator.pkixvalidator.enginevalidate(pkixvalidator。java:302)在sun.security.validator.validator.validate(validator。java:260)在sun.security.ssl.x509trustmanagerimpl.validate(x509trustmanagerimpl。java:324)在sun.security.ssl.x509trustmanagerimpl.checktrusted(x509trustmanagerimpl。java:229)在sun.security.ssl.x509trustmanagerimpl.checkservertrusted(x509trustmanagerimpl。java:105)在weblogic.security.ssl.jsseadapter.jatrustmanager.checkservertrusted(jatrustmanager。java:128)在sun.security.ssl.abstractTrustManagerRapper.checkservertrusted(sslcontextimpl。java:999)在sun.security.ssl.clienthandshaker.servercertificate(clienthandshaker。java:1601) ... 52其他原因:sun.security.provider.certpath.suncertpathbuilderexception:在sun.security.provider.certpath.suncertpathbuilder.build(suncertpathbuilder)中找不到请求目标的有效证书路径。java:141)在sun.security.provider.certpath.suncertpathbuilder.enginebuild(suncertpathbuilder。java:126)在java.security.cert.certpathbuilder.build(certpathbuilder。java:280)在sun.security.validator.pkixvalidator.dobuild(pkixvalidator。java:392) ... 60多个

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题