No way to clear TLS Cache with NSURLConnection

Originator:kevin.harwood
Number:rdar://13890162 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
I have been working on SSL features of the AFNetworking library, and will soon be refactoring that code to make it more testable as we stand up a unit testing framework around library. We expose the ability to allow an invalid ssl certificate, as well as advanced SSL pinning options which provide increased network security for a mobile app.

However, when digging deep into the NSURLConnectionDelegate callback methods, I found that connection:willSendRequestForAuthenticationChallenge: only gets called once, prevented me from actually applying different behavior in the future after that credential has first been applied.

Digging deeper, it looks like this is a result of the TLS cache hanging around for 10 minutes, per this Q&A doc:

http://developer.apple.com/library/ios/#qa/qa1727/_index.html

In addition, that doc links to a rdar://8957312, which describes what I need here: A way to flush the cache.

Please consider this a request to allow a developer to flush that cache if necessary.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!