Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked November 30th 2010 by Michele Nasoni
  • iphone
  • selfsigned
  • ssl
0 Comments

5 Answers

  • The problem is the port

    this is working
    https://someurl.com

    however,
    this does not work
    https://someurl.com:443

    However, I need to use a different port, I really believe that it is a bug

    — answered November 30th 2010 by Michele Nasoni
    permalink
    2 Comments
    • does the url work properly from outside of your application?

      — commented December 1st 2010 by Aaron Saunders
    • Please don't tell me it's a bug, I've got the same problem.

      — commented December 2nd 2010 by Jeroen Kntl
  • FYI this is fixed in 1.5.0

    — answered December 16th 2010 by Jeroen Kntl
    permalink
    2 Comments
    • Not true at 100%, yes now I can put the 443 and I do not have the error. However, If I put a different port I still have the error

      — commented December 16th 2010 by Michele Nasoni
    • I am using port 8012 and it works.

      — commented December 22nd 2010 by Jeroen Kntl
  • 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.

    — answered November 30th 2010 by Aaron Saunders
    permalink
    0 Comments
  • 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

    — answered November 30th 2010 by Michele Nasoni
    permalink
    0 Comments
  • For reference, the bug report.

    — answered December 2nd 2010 by Jeroen Kntl
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.