Current location - Quotes Website - Personality signature - Default TLS trust evaluation in iOS https request failed.
Default TLS trust evaluation in iOS https request failed.
The company server updated https, but used a self-signed certificate, which led to the untrusted certificate when calling the HTTPS interface during the development of iOS, and the default TLS trust evaluation failed.

NSURLSession adds a proxy at initialization, and then performs certificate-related processing in the proxy method.

1. Skip TLS authentication and trust all certificates.

2. Set the white list, add the signing certificate to the project, and check it.