Netweaver 服务器和客户端TLS版本号不匹配的解决方案

版权声明:本文为博主汪子熙原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/89511400

我今天用ABAP http API cl_http_client访问下面这个链接时:

https://c4c.saphybriscloud.cn/sap/c4c/odata/cust/v1/zjerrysalesorder/CustomerQuoteCollection(‘00163E7209B31ED999C75C841A4214FD’)/CustomerQuoteParty

clipboard1

遇到如下错误信息:

SSL handshake with my500092.c4c.saphybriscloud.cn:443 failed: SSSLERR_SSL_READ (-58)
SAPCRYPTO:SSL_read() failed

SapSSLSessionStartNB()==SSSLERR_SSL_READ
SSL:SSL_read() failed (536875120/0x20001070)
=> “received a fatal TLS protocol version alert message from the peer”
SSL:SSL_get_state()==0x2120 “TLS read server hello A”
SSL NI-hdl 102: local=10.65.40.98:58242 peer=157.133.192.39:443
cli SSL session PSE “/usr/sap/S4H/D00/sec/SAPSSLA.pse”
session ciphersuites=144:HIGH:!eRC4:!eNULL:!aNULL:!mMD5
Client SSL_CTX 7f2af8001490 pvflags=128 (TLSv1.0)
TLSextSNI server_name=“my500092.c4c.saphybriscloud.cn
Target Hostname=“my500092.c4c.saphybriscloud.cn

---- SecuSSL ErrStack: ----
0x20001070 | SAPCRYPTOLIB | SSL_read
SSL API error
received a fatal TLS protocol version alert message from the peer
0xa0600278 | SSL | ssl3_read_bytes
received a fatal TLS protocol version alert message from the peer
0xa0600278 | SSL | ssl3_connect
received a fatal TLS protocol version alert message from the peer
0xa0600278 | SSL | ssl3_read_bytes
received a fatal TLS protocol version alert message from the peer
<< ---------------------------

clipboard2

clipboard3

clipboard4

根据错误信息进行查询,解决方案在SAP note 2389482里有介绍:

clipboard5

                                                                                                                                                                                                                                    要获取更多Jerry的原创文章,请关注公众号"汪子熙":

猜你喜欢

转载自blog.csdn.net/i042416/article/details/89511400