Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jayden Spring
8,625 PointsSSL Certificate Invalid?
Hi,
I am trying to make a connection to one of my web servers to pull some JSON data down and format it.
I had this all written previously in obj-c and since this was an ad-hoc distribution I circumvented the error by specifically trusting the connection. However, I now want to get to the bottom of this as it is confusing me somewhat. The site has a 128bit AES encryption signed by Comodo with an extended validation (so we have the green bar) and this is even recognised by Safari hence I dont understand why Xcode is complaining.
Here is the error I get- pardon the fact i have annotated some parts of the URL out as they contain posted data with raw passwords (for testing).
If anyone could help that would be much appreciated.
Thanks!
1 Answer
Jayden Spring
8,625 PointsWhacks head - I had been connecting to the wrong server! For anyone who encounters this error, run a check of your SSL Certificate at SSLabs (https://www.ssllabs.com/ssltest/) And make sure that there are no chain issues. Normally a browser would ignore these chain issues, whereas Apple obviously wants the chain to be perfect so the connection is truly secure.

