gxm44

是不是 iOS 开发中,发送 https 请求,不能使用自定义端口?

  •  
  •   gxm44 · Oct 30, 2018 · 3869 views
    This topic created in 2831 days ago, the information mentioned may be changed or developed.

    我们的 https 服务,使用了自定义的端口 4443,在浏览器,Android 上的 App 请求都是正常的,但是在 iOS 里,会报以下错误

    Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSEerrorFailingURLStringKey=https://xxx.xxx.net:4443/api/v1/users

    切换成标准 443 就没用问题,想请教一下各位大神,在 iOS 里是不支持自定义的 SSL 端口吗?

    1 replies    2018-10-30 20:25:38 +08:00
    gxm44
        1
    gxm44  
    OP
       Oct 30, 2018
    问题解决了,是因为在 iOS 里,是强制使用 TLSv1.2 的,所以 server 端一定要开启 TLSv1.2 的支持。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2940 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:40 · PVG 15:40 · LAX 00:40 · JFK 03:40
    ♥ Do have faith in what you're doing.