Skip to content
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

Tag CMS signer identifier implicitly #218

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Tag CMS signer identifier implicitly #218

merged 2 commits into from
Jan 14, 2025

Conversation

nicholaskim94
Copy link
Contributor

@nicholaskim94 nicholaskim94 commented Jan 13, 2025

As pointed out in #203, the SignerIdentifier in PKCS#7 CMS should be implicitly tagged while the currently swift-certificates explicitly tags it. This PR contains changes for SignerIdentifier of SubjectKeyIdentifier type to be implicitly tagged.

RFC 5652 § 12.1:

SignerIdentifier ::= CHOICE {
  issuerAndSerialNumber IssuerAndSerialNumber,
  subjectKeyIdentifier [0] SubjectKeyIdentifier }

Resolves: #203

@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jan 13, 2025
@Lukasa
Copy link
Contributor

Lukasa commented Jan 13, 2025

Looks like a little formatting needs to be cleaned up, but otherwise this patch looks great!

@nicholaskim94
Copy link
Contributor Author

@Lukasa Thanks for the prompt review! I've cleaned up the formatting

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Fantastic patch @nicholaskim94, thanks so much! ✨

@Lukasa Lukasa enabled auto-merge (squash) January 14, 2025 14:54
@Lukasa Lukasa merged commit 8210859 into apple:main Jan 14, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMS signer identifier is incorrectly encoded
2 participants