AFNetworking/AFNetworking — pull request #694 by dstnbrkr (2012-12-22 01:51:33+00:00)
Title: Optional SSL Certificate Pinning

This pull request adds optional SSL certificate pinning to AFNetworking. All of the code needed to enable certificate pinning is in commit f8815ac.

To enable SSL certificate pinning, set _AFNETWORKING_PIN_SSL_CERTIFICATES_=1

Once enabled, AFNetworking will find all certificates in the app bundle (all *.cer files) and will only accept SSL certificates that have a matching bundle certificate. This requires all SSL certificates shipped in the app bundle to be up to date.

All other commits other than f8815ac add SSL certificate pinning to the iOS and Mac example projects. These commits can be omitted if you'd rather not add that to the example (the certificates will expire in November 2013).