SAP PI 配置SSL链接接口报错问题处理Peer certificate rejected by ChainVerifier

出现这种情况一般无非是没有正确导入证书或者证书过期的情况

第一种,如果没有导入证书的话,需要在NWA中的证书与验证-》CAs中导入管理员提供的证书,这里需要注意的是,需要导入完整的证书链。

第二种如果是证书过期的,可以直接导入新的证书,如果出现冲突的情况需要把对应的证书删除,然后再导入新的证书,以下是SAP提供的原因解释3076281:

  1. Make sure that backend server's certificate chain has correct hostname and does not include unsupported characters. Also make sure there is no other certificate with the same value of Subject existing in TrustedCAs. Two certificates with the same Subject value can't co-exist in one keystore view. If it exists, then at runtime, during SSL handshake, a lookup is done only once based on Subject value thus can results in titled error, finally cause SSL failure.
    For example:
    AS Java AAA is SSL client. AS ABAP BBB is SSL server and AS ABAP CCC is another SSL server. Both BBB and CCC has SSL certificate with same Subject value but the serial number is different. Such as:

    BBB:
    Subject: CN=*.test.sap.com OU=DE
    Serial Number: 00:01:02:03:04

    CCC:
    Subject: CN=*.test.sap.com OU=DE
    Serial Number:00:05:06:07:08

    Even though both BBB and CCC SSL certificates get imported into TrustedCAs, however at runtime when AAA try to communicate with BBB and CCC. Only one of them work, while the other one will always end with titled error.

  2. If server contains wildcard value "*", check hints from the resolution part of the KBA apart from the fact that it is PI system or not: 2222086 - Peer certificate rejected by ChainVerifier in PI File Adapter.

  3. Make sure that backend server's certificate chain's order is correct .
    For example:
    SSL server has certificate chain like following:

    Cert 0\] Subject: CN=\*.test.sap.com; Issuer: CN=aaa \[Cert 1\] Subject: CN=aaa; Issuer: CN=bbb \[Cert 2\] Subject: CN=bbb; Issuer: CN=ccc \[Cert 3\] Subject: **CN=ccc; Issuer: CN=ccc** In this case, \[Cert 1\] \[Cert 2\] are intermediate certificates and **\[Cert 3\] is root certificate**. Thus need to import \[Cert 1\] \[Cert 2\] and \[Cert 3\] to make Certification Revocation Check get passed correctly.

  4. In AS JAVA, go toNetweaver Administrator -> Configuration tab -> Security -> Certificates and Keys -> Key Storage tab -> TrustedCAs.

  5. Select theTrustedCAs view and click Import Entry button.

  6. Import the certificate chain provided by the SSL server.

但需要注意的是,可能还会出现类似的报错情况,这个时候可以通过xpi_inspector工具对rest接口进行检测,查看具体的报错异常,如果还是由于证书不匹配的情况导致,可以在工具里面导出对应的证书2056672

相关推荐
小李独爱秋几秒前
计算机网络经典问题透视:RTS/CTS是强制使用还是选择使用?
网络协议·计算机网络·网络安全·信息与通信·信号处理
hoududubaba6 分钟前
ORAN C平面传输和基本功能——C平面消息的ACK/NACK过程
网络·网络协议
云中飞鸿21 分钟前
虚拟机需要连外网,同时笔记本连接wlan,IP经常变,该怎么配置网络?
服务器·网络·tcp/ip
坐怀不乱杯魂21 分钟前
Linux 网络 - HTTP -cookie session
网络·网络协议·http
j_xxx404_21 分钟前
Linux:进程控制(创建/终止/等待/获取退出信息/多进程)
linux·运维·服务器
小李独爱秋33 分钟前
计算机网络经典问题透视:无线局域网MAC协议中的SIFS和DIFS究竟是什么?
网络协议·计算机网络·macos·网络安全·信息与通信·信号处理
BUG_MeDe35 分钟前
LINUX MTU/MSS(1500 1460等)的一些理解
linux·运维·服务器
惊讶的猫44 分钟前
短轮询,长轮询和websocket
网络·websocket·网络协议
小宇的天下1 小时前
Cadence allegro---assign net
服务器·php·apache
树℡独9 小时前
ns-3仿真之应用层(五)
服务器·网络·tcp/ip·ns3