0

再会,

我有 2 个应用服务器,比如说 App1 和 App2。

我在 App2 中有一个自签名证书,我将此自签名证书导入 App1。但是我的 App1 仍然无法连接到 App2 https url,它遇到了以下错误:

{
    "errorCode": "RSERR002",
    "message": "REST call failure with exception [sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]"
}

从 App1,我正在尝试使用命令来测试自签名证书,以验证我是否可以使用此证书访问 App2 https url。

如果命令连接成功,那么我可能会怀疑我将自签名证书导入 App1 的方式是错误的。有了这个,我可以更具体地知道问题是什么。

类似于使用命令加载证书,然后 curl -i 到 url?

我尝试谷歌,但无法获得命令,这样的命令存在吗?应用服务器部署在 RED HAT Jboss 中。

4

1 回答 1

0

我找到了,使用 curl 命令和 cacert 来传递证书:

curl --cacert jboss.crt " https://sit.app1.com:8443/api/v10/main/init "

于 2020-02-26T03:13:29.533 回答