我正在尝试使用标准RISPORT70 API将基于swift的IOS应用程序与Cisco Unified Communications Manager 11.5版集成:
https://developer.cisco.com/docs/sxml/#!risport70-api-reference/selectcmdevice
从API调用中获得一些响应。
我打以下电话:
https://<server IP>:8443/realtimeservice2/services/RISService70?wsdl
体内带有相应的SOAP信封,但得到ATS failed system trust. error - code: -1200
api调用在Postman上没有SSL证书验证的情况下有效,但在实际应用程序上无效。
我尝试过:
在Cisco服务器上获得了内部PKI签名证书证书,并在本地钥匙串上添加了根证书,中间证书和服务器证书。
尝试使用以下参数更新info.plist:
错误:
2019-10-09 16:54:56.336902-0400 APP[3556:172438] ATS failed system trust
2019-10-09 16:54:56.337008-0400 APP[3556:172438] Connection 1: system TLS Trust evaluation failed(-9802)
2019-10-09 16:54:56.337125-0400 APP[3556:172438] Connection 1: TLS Trust encountered error 3:-9802
2019-10-09 16:54:56.337202-0400 APP[3556:172438] Connection 1: encountered error(3:-9802)
2019-10-09 16:54:56.340683-0400 APP[3556:172438] Task <2F074FBA-C54B-4972-B269-1B3EE5919344>.<1> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9802])
Optional(Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x60000071a2e0>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9802, NSErrorPeerCertificateChainKey=(