webMethods调用HTTPS报错:iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier

1.报错信息

在使用pub.client:http方法调用客户的HTTPS的URL时,监控的Mail报错:
推送质押结果到****接口有报错,报错信息如下,请关注。
异常信息:iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier


2.原因分析

检查发现这个客户的SSL Certificate没有导入进Truststore


3.处理方法

访问客户的HTTPS时,webMethods IS平台Security > Keystore中要将客户的证书导入到Truststore中。
在pub.client:http也可以加入下面的方法pub.security.keystore:setKeyAndChain。
WebMethods 的帮助文档有pub.client:http解释补充:
If url begins with  https: , you can use pub.security:setKeyAndChain to specify the certificate
chain. If you do not specify a certificate chain, pub.client:http uses the default outbound SSL
certificate settings to authenticate the resources.
pub.security:setKeyAndChain已经Deprecated了,Replaced by pub.security.keystore:setKeyAndChain.


4.补充备注

出现Server certificate rejected by ChainVerifier的原因还有可能:
(1)、证书内容导入不正确 
the client cert just is one-level cert,there are not CA root and intermediate certs
(2)、证书信息不对
the cert is not a valid server cert somehow,double check you truststore, you have the right cert there

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值