xCode 9 - iOS 11: NSURLConnection - sendAsynchronousRequest fails

前端 未结 3 1686
醉酒成梦
醉酒成梦 2021-01-04 00:41

I just downloaded the latest version of xCode (9.0 beta (9M136h)).

However, when I try to make a request to my server in iOS 11 simulator (Using NSURLConnection send

3条回答
  •  花落未央
    2021-01-04 01:24

    Since you've got an invalid certificate error, I'll make the following suggestion based on my personal security practice.

    If you're still in your servicing terms with your CA, ask them to issue a new valid certificate for you.

    Check your Keychain setting and make sure no CA cert is missing.

    Alternatively, you can issue your own self-signed certificate for testing purposes, and add it to your local Keychain as trust anchor. A search for "how to create self-signed x509 certificate" will return something you might find useful.

提交回复
热议问题