java - 通过 SSL 的 LDAP 连接在 Docker 容器中失败,但在 Openshift 容器中工作
问题描述
需要您帮助解决容器问题。
我的问题与容器中 WLP 服务器上运行的 Java 应用程序中通过 SSL 的 LDAP 通信有关。看起来很奇怪,因为相同的图像在 Openshfit 中运行良好,但在 docker 服务器中失败。
详细信息:在 Docker 容器中的 WLP 服务器上运行的 Java 应用程序。LDAP 在 server.xml 和 jks 文件中配置,并提供了所需的证书。创建了 Docker 映像,并且应用程序在容器中运行良好。
Docker:最近,在一些代码更改后,当尝试使用新镜像运行容器时,它开始给出 SSL 相关的错误。后来尝试使用旧图像,这也给出了相同的 SSL 错误。
Openshift:相同的图像(旧的和新的)在 Openshift 环境中运行良好。
所有证书都在密钥库中可用。
错误:
Caused by: javax.naming.CommunicationException: simple bind failed: <xxx.yyy.zzz.com:123> [Root exception is javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by CN=Issuer name, DC=<domain>, DC=abc, DC=com is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error]
解决方案
推荐阅读
- javascript - React 将数组从父状态传递到子状态
- c# - 如果已经登录,使用会话状态将用户重定向到主页
- c++ - 在字符串中的偶数位置提取字母?
- html - 如何创建包含带有 R 的图像的 html 表(通过相对路径或插入 - base64)?
- node.js - 如何将多个项目同时插入到 MongoDB 集合中?
- tableau-api - 列聚合上的 Tableau 堆叠和并排条形图
- html - LinearGradiant SVG 动画在 Firefox 中看起来不正确
- dynamics-crm - 未考虑 FetchXml 查询的条件
- javascript - 邮政编码的openweathermap天气数据不起作用?
- excel - 为多个条件创建索引(匹配()),为多个日期创建多个结果