Sitelet https://github.com/RustCrypto/formats/pull/2440
Skip to content

x509-cert: make Builder::assemble() take in an AlgorithmIdentifier instead of a signer - #2440

Closed
cuddleworks wants to merge 1 commit into
RustCrypto:masterfrom
cuddleworks:master
Closed

cuddleworks wants to merge 1 commit into
RustCrypto:masterfrom
cuddleworks:master

Conversation

@cuddleworks

Copy link
Copy Markdown

This makes it so that one can build a Certificate without needing to create a dummy signer, it also aligns the function signature more to what it actually does.

This PR also contains a change in cms, due to cms depending on the Builder trait.

@baloo

baloo commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Can you share a bit about your use-case? I'm not sure I follow what you're trying to do.
I believe the current implementation has better semantics.

You're not really meant to call assemble manually, Builder::build is the main entrypoint. and you're already providing a signer at that point.

Also: This is breaking change and this will have to wait the next release-cycle.

EDIT: if that is #2439 to build a certificate from existing part, this is not supported by this crate, and I don't believe we mean to support that.

Your best option is likely to make your own Certificate implementation and #[derive(der::Sequence)] with it.

@cuddleworks

Copy link
Copy Markdown
Author

I see, I misunderstood the intended use of this crate. Thanks for clarifying!

@cuddleworks cuddleworks closed this Oct 4, 2026
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.

2 participants