https - In order to validate a domain name for self signed certificates, you MUST use pinning
Inordertovalidateadomainnameforselfsignedcertificates,youMUSTusepinning,AFNetWorking使用自签证书时出现问题。上述问题的解决方法://如果是需要验证自建证书,需要设置为YESsecurityPoliy.allowInvalidCertificates=YES;securityPoliy.validatesDomain