Enforce extension uniqueness
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 505
- Forks
- 157
- Avg merge
- 39m
- Merged PRs (30d)
- 1
Description
As a breaking API change rcgen should refuse to generate certificates with duplicate extensions.
RFC 5280 §4.2 says:
A certificate MUST NOT include more than one instance of a particular extension.
This can occur with the current API in two ways:
- Specifying duplicate extensions within
CertificateParams.custom_extensions - Specifying an extension in
CertificateParams.custom_extensionsthat has the same OID as an extensionrcgenemits natively (e.g.id-ce-subjectAltName,id-ce-authorityKeyIdentifier, etc).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading CertificateParams.custom_extensions and the native extension generation paths, then compare their behavior with RFC 5280 §4.2. Reproduce both duplicate cases described in the issue and verify that certificate generation refuses repeated extension OIDs, including collisions with natively emitted extensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cryptography, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100