-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Certificate Pinning #1750
Merged
e5l
merged 5 commits into
ktorio:e5l/develop
from
alistairsykes:alistairsykes/ios-cert-pinning
Mar 27, 2020
Merged
iOS Certificate Pinning #1750
e5l
merged 5 commits into
ktorio:e5l/develop
from
alistairsykes:alistairsykes/ios-cert-pinning
Mar 27, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`CPointer`'s need to be released by calling `CFBridgingRelease`. To enable this consistently, even when an exception is thrown, add a `use` function. Forms part of: (#1431)
To support users with certificate pinning on iOS, provide a class which enables public key certificate pinning. It should provide a simple interface and clear guidance on how to use. It should conform to `ChallengeHandler` to enable easy configuration of the engine. Forms part of: (#1431)
Forms part of: (#1431)
Given the contributing guidelines, this new API should be marked with `@KtorExperimentalAPI` Forms part of: (#1431)
As discussed with @e5l I have been unable to build and validate this PR due to an issue with gradle configuration. |
Merged in |
e5l
pushed a commit
that referenced
this pull request
Mar 30, 2020
e5l
pushed a commit
that referenced
this pull request
Apr 1, 2020
e5l
pushed a commit
that referenced
this pull request
Apr 7, 2020
e5l
pushed a commit
that referenced
this pull request
Apr 8, 2020
e5l
pushed a commit
that referenced
this pull request
May 26, 2020
e5l
pushed a commit
that referenced
this pull request
May 29, 2020
e5l
pushed a commit
that referenced
this pull request
Jul 15, 2020
e5l
pushed a commit
that referenced
this pull request
Jul 21, 2020
e5l
pushed a commit
that referenced
this pull request
Aug 10, 2020
e5l
pushed a commit
that referenced
this pull request
Aug 10, 2020
e5l
pushed a commit
that referenced
this pull request
Aug 10, 2020
e5l
pushed a commit
that referenced
this pull request
Aug 10, 2020
e5l
pushed a commit
that referenced
this pull request
Aug 11, 2020
e5l
pushed a commit
that referenced
this pull request
Aug 12, 2020
e5l
added a commit
that referenced
this pull request
Aug 16, 2020
e5l
added a commit
that referenced
this pull request
Aug 17, 2020
e5l
pushed a commit
that referenced
this pull request
Aug 17, 2020
e5l
pushed a commit
that referenced
this pull request
Aug 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Subsystem
Client, iOS
Motivation
Pinning certificates defends against attacks on certificate authorities. It also prevents connections through man-in-the-middle certificate authorities either known or unknown to the application's user.
#1431
Solution
Added class
CertificatePinner
which confirms toChallengeHandler
. In doing so it can override:and therefore ensure that the certificates in the serverTrust match those that are pinned.