HttpClient with a self signed ssl certificated
I am trying to use HttpClient with a https url in different port with a self-signed certificate
https://someurl.com:1433
I get this error
Domain=ASIHTTPRequestErrorDomain Code=1 "A connection failure occurred" UserInfo=0x8a75900 {NSUnderlyingError=0x8a2b100 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)", NSLocalizedDescription=A connection failure occurred}
Ideas? thank you
5 Answers
-
The problem is the port
this is working
https://someurl.comhowever,
this does not work
https://someurl.com:443However, I need to use a different port, I really believe that it is a bug
-
FYI this is fixed in 1.5.0
-
Did you install the certificate on the device yet?
I would suggest browsing to the URL in safari, and accepting the certificate and then retry. This will let you know if it is a certificate issue.
-
Thank you for the answer.
I have tried on the simulator I will try on the iphone and I will let you know.Thank you
-
For reference, the bug report.