ios - NSURLSession/NSURLConnection HTTP load failed wildcard certificate ios8/9 -


i'm trying call public api valid wildcar ssl certificate (bought) connection fail error:

error domain=nsurlerrordomain code=-1202 "the certificate server invalid. might connecting server pretending “api.mydomain.com” put confidential information @ risk." userinfo={nsurlerrorfailingurlpeertrusterrorkey=, nslocalizedrecoverysuggestion=would connect server anyway?, _kcfstreamerrordomainkey=3, _kcfstreamerrorcodekey=-9813, nserrorpeercertificatechainkey={type = immutable, count = 1, values = ( 0 :

the wildcard certificate cover allsubdomains : *.mydomain.com host i'm trying connect : api.mydomain.com

i tryed add exception app transport security not work

<key>nsapptransportsecurity</key> <dict>     <key>nsallowsarbitraryloads</key>     <true/>     <key>nsexceptiondomains</key>     <dict>         <key>mydomain.com</key>         <dict>             <key>nsexceptionallowsinsecurehttploads</key>             <true/>             <key>nsincludessubdomains</key>             <true/>         </dict>     </dict> </dict> 

how can fix problem?

share|improve question
    
it not ats issue, because otherwise it'd work on ios 8. ios has troubles trusting issuer's ca certificate? try adding issuer's certificate , see if error gone. – alex skalozub feb 6 '16 @ 10:56
    
how can add issuer's ca certificate ? – milonet feb 8 '16 @ 17:10
    
typically opening ca certificate file web page or email (send yourself) brings option install it. can added iphone configuration utility. certificate should available download somewhere on issuer's site. – alex skalozub feb 8 '16 @ 18:02

your answer

 
discard

posting answer, agree privacy policy , terms of service.

browse other questions tagged or ask own question.

Comments