When using self-signed client certificates you need to set the SSL properties as well as setting the client certificate. Under iOS 5 the call to CFReadStreamSetProperty apparently overwrites the existing values (previously it seemed to add to them) - so the current code structure means setting the certificate looses the SSL properties. This fix allows them both to be set together.
Fixes for self signed Client Certificates in iOS 5
Thanks for submitting this - the current commit can't be merged, any chance you can update it?