objective c - How do I get CFNetwork operations to stop trusting a certificate -
i have set app allow switching ssl certificate validation on , off based on url using mechansim outlined here: objective-c/cocoa: how take bad server certificate?
this sets client take 'bad' certificate server. problem subsequent calls same server finish correctly, if set have strict certificate checking.
i assume underlying cfnetwork implementation caching certificate , 'trusted' status. don't want behaviour.
is there way either turn off certificate caching in general/for specific request, or @ to the lowest degree purge cache
try using os x keychain access utility examine login keychain. can delete or alter trust policy of cached certificates there. there command-line interface: /usr/bin/security.
objective-c osx cocoa
No comments:
Post a Comment