Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl 用于验证自签名证书是否适合访问应用程序的命令_Ssl_Command_Certificate_Redhat_Self Signed Certificate - Fatal编程技术网

Ssl 用于验证自签名证书是否适合访问应用程序的命令

Ssl 用于验证自签名证书是否适合访问应用程序的命令,ssl,command,certificate,redhat,self-signed-certificate,Ssl,Command,Certificate,Redhat,Self Signed Certificate,你好 我有两个应用服务器,比如说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.s

你好

我有两个应用服务器,比如说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中。

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

curl--cacert jboss.crt“”