再会,
我的 Web 应用程序需要连接到 IBM 第三方以获得一些响应。因此,IBM 给了我一个.p12
包含客户证书的文件。
起初我将此.p12
文件导入我现有的文件CellDefaultKeyStore
中,它会遇到证书链错误。
com.ibm.jsse2.util.j: 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 xxx is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
然后我把这个.p12
文件导入到NodeDefaultKeyStore
中,令人惊讶的是它的工作。我的应用程序能够调用第三方并获得响应代码 200。
我不明白如何向我的客户解释这一点。
据我了解,管理范围CellDefaultKeyStore
更大,因为它在单元格中,NodeDefaultKeyStore
应该只考虑单元格的一部分,假设CellDefaultKeyStore
应该工作。
任何人都可以就此提出建议吗?