Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Added in SSL Certificate Pinning using RNPinnedCertValidator library #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hongkongkiwi
Copy link
Contributor

I've added SSL certificate pinning into the library, it relies on a new submodule RNPinnedCertValidator.

What is SSL pinning? It essentially adds an extra layer of security by checking a chain of trust against a local set of public certificate files (the files are stored in the bundle). This is useful to prevent Man in the middle attacks.

Here are some steps for setting up pinning in AFNetworking. The steps are the same to produce the cer file.

Once you have a .cer file, simply put it in your bundle and setup the library like this before connect

self.socketIO.useSSLPinning = YES;
self.socketIO.sslPinningCert = @"ca-file"; // Without the .cer extension

That's it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant