Skip to content

Support singing via Certificate PrivateKey - #257

Merged
Lukasa merged 5 commits into
apple:mainfrom
bauer-andreas:signing-support
Jul 1, 2025
Merged

Support singing via Certificate PrivateKey#257
Lukasa merged 5 commits into
apple:mainfrom
bauer-andreas:signing-support

Conversation

@bauer-andreas

Copy link
Copy Markdown
Contributor

This PR introduces two key changes to improve flexibility when working with signatures in swift-certificates. Previously, it was only possible to verify signatures using Certificate.PrivateKey, but not to generate them.

  • The internal sign(bytes:signatureAlgorithm:) method on Certificate.PrivateKey is now public, allowing users to generate signatures directly.
  • Certificate.Signature gains a new rawRepresentation property that exposes the raw byte representation of a signature.

@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Jun 24, 2025
Comment thread Sources/X509/Signature.swift
Comment thread Tests/X509Tests/SignatureTests.swift
@bauer-andreas
bauer-andreas requested a review from Lukasa June 30, 2025 15:30
@Lukasa
Lukasa merged commit e3c198a into apple:main Jul 1, 2025
32 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants