datatheorem / datatheorem/TrustKit

Expected error codes

Open
#280 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
2.1k
Forks
381
PR merge metrics
No merged PRs in 30d

Description

Is there a list of expected error codes that could be returned when certificate pinning fails the check? I can't find any explicit errors in TrustKit documentation or source code, so I assume they are handled by NSURLSession. I found NSURLErrorClientCertificateRejected = -1205, are there others that I should be handling?

https://developer.apple.com/documentation/foundation/1508628-url_loading_system_error_codes/nsurlerrorclientcertificaterejected?language=occ

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the TrustKit documentation and source code, then compare the certificate-pinning failure path with Apple's URL Loading System error-code documentation linked in the issue. Document the expected error codes and clarify which errors are produced by TrustKit versus NSURLSession, including any handling guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
mobile-dev, security
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.