Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Removed Certificate Chain Validation #2856

Merged
merged 1 commit into from Jul 27, 2015
Merged

Removed Certificate Chain Validation #2856

merged 1 commit into from Jul 27, 2015

Conversation

kcharwood
Copy link
Contributor

As discussed in #2744, I have removed certificate chain validation as a feature in AFSecurityPolicy. After a community discussion as well as a conversation with the security team at Apple, there are no specific advantages to maintaining this feature going forward.

Starting with this pull request, a security policy will allow a server trust if any of the pinned certificates meeting the security requirements of the policy.

In addition, I have completely refactored the security policy tests, and grouped them in a way that is more readable and more maintainable going forward. I would love some eyes on those tests and see if we can come up with any more, especially negative test cases.

We'll get this in first, then move on to bringing in public key hash pinning.

@kcharwood kcharwood added this to the 2.6.0 milestone Jul 24, 2015
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't want to change the copyright header do we?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. By product of creating a new file for the new tests, then blasting the old one upon completion. I'll add it back.

@kcharwood kcharwood force-pushed the simplified_security branch 2 times, most recently from 9154fde to 6e3c41d Compare July 27, 2015 15:55
- Refactored Security Tests
- Updated Documentation
@kcharwood
Copy link
Contributor Author

Going once.... Going Twice...

kcharwood added a commit that referenced this pull request Jul 27, 2015
@kcharwood kcharwood merged commit 36bccff into master Jul 27, 2015
@kcharwood kcharwood deleted the simplified_security branch October 2, 2015 18:55
@urklc
Copy link

urklc commented Mar 10, 2017

Hi, when allowing invalid certificates, why do we need to pin the certificate only if validatesDomainName is true? There's no mention about domain name validation in Apple Docs referenced in this change?

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