我今天用ABAP http API cl_http_client访问下面这个链接时:
https://c4c.saphybriscloud.cn/sap/c4c/odata/cust/v1/zjerrysalesorder/CustomerQuoteCollection(‘00163E7209B31ED999C75C841A4214FD’)/CustomerQuoteParty
遇到如下错误信息:
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 << ---------------------------
根据错误信息进行查询,解决方案在SAP note 2389482里有介绍: