In iOS SSL pinning is not working
imanshul opened this issue · 1 comments
imanshul commented
frw commented
@imanshul Is this right after you launch the app, or did you successfully fetch first from the domain before attempting to pin?
Please see this note about iOS:
https://github.com/frw/react-native-ssl-public-key-pinning?tab=readme-ov-file#known-issues
On iOS, SSL/TLS sessions are cached. If a connection to your site previously succeeded, setting a pinning configuration that should fail the following request would not actually fail it since the previous session is used. You will need to restart your app to clear out this cache.
Try to restart the app, immediately initialize pinning with the Invalid Example, and then attempt to fetch from google.com