Skip to content

Add SPKI certificate pinning support#910

Open
o-nnerb wants to merge 33 commits into
swift-server:mainfrom
o-nnerb:main
Open

Add SPKI certificate pinning support#910
o-nnerb wants to merge 33 commits into
swift-server:mainfrom
o-nnerb:main

Conversation

@o-nnerb

@o-nnerb o-nnerb commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This PR introduces SPKI-based certificate pinning to AsyncHTTPClient to mitigate MITM attacks and compromised CAs.

Highlights:

  • Implements .strict and .audit modes with multi-algorithm hashing (SHA-256/384/512) and constant-time comparison.
  • Aligned with OWASP/NIST security standards, featuring rotation safety warnings and explicit error handling.
  • Requirement: Requires OpenSSL/BoringSSL backend (Network.framework connections ignore pinning configuration).

o-nnerb and others added 30 commits February 1, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant