gpt4 book ai didi

java - SSLHandshakeErrorTracker : SSLC0008E: Unable to initialize SSL connection. 未经授权的访问被拒绝或安全设置已过期

转载 作者:太空宇宙 更新时间:2023-11-03 14:27:55 31 4
gpt4 key购买 nike

有 2 个服务器。第一个是生产环境,第二个是我的 Websphere(模拟服务器)。我在 Websphere 中安装了一个应用程序,它无法处理来自客户端服务器的 https/http 请求。

当客户端配置为访问 https(端口 9443)到我的模拟服务器时,我在处理请求时遇到以下错误:

ERROR 13172876 --- [bContainer : 13]c.i.w.s.c.impl.SSLHandshakeErrorTracker : SSLC0008E: Unable toinitialize SSL connection. Unauthorized access was denied orsecurity settings have expired. Exception isjavax.net.ssl.SSLException: Unrecognized SSL message, plaintextconnection?

当客户端配置http(端口9080)时,出现以下错误:

WARN 13172876 --- [ebContainer : 7] o.s.web.servlet.PageNotFound
: Request method 'GET' not supported

ERROR 13172876 --- [ebContainer :7] o.s.boot.web.support.ErrorPageFilter : Cannot forward to errorpage for request [/] as the response has already been committed. As aresult, the response may have the wrong status code. If yourapplication is running on WebSphere Application Server you may be ableto resolve this problem by settingcom.ibm.ws.webcontainer.invokeFlushAfterService to false

我已经在我的应用程序中为服务虚拟化配置了 WireMock 应用程序。我的应用程序有 1 个 RestController,它有 2 个请求方法 (POST) 和 1 个类来配置/运行 wiremock 服务。当我直接从模拟服务器测试应用程序时,我没有任何错误。但是当客户端访问我的服务器时,我收到以下错误。

最佳答案

对于 https 问题,证书可能会过期,这是在应用程序服务器(Websphere)级别配置的。

对于 Http 问题,可能有一些其他防火墙或配置在请求到达服务器之前执行请求。否则,它也会在您的本地设置中产生问题。

关于java - SSLHandshakeErrorTracker : SSLC0008E: Unable to initialize SSL connection. 未经授权的访问被拒绝或安全设置已过期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55321341/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com