rcgen should refuse emply subject_alt_names
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 505
- Forks
- 157
- Avg merge
- 39m
- Merged PRs (30d)
- 1
Description
Cause webpki refuse it https://github.com/briansmith/webpki/blob/17d9189981a618120fd8217a913828e7418e2484/src/cert.rs#L98-L107
It's lead to:
Rustls: InvalidCertificateData("invalid peer certificate: MissingOrMalformedExtensions")
(not a very explicit error).
I suggest at the very least that generate_simple_self_signed refuse empty vec.
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 with generate_simple_self_signed in the rcgen API and read the referenced webpki cert.rs lines 98-107 to understand why empty subject_alt_names are rejected downstream. Verify the empty-vector case is refused at the rcgen boundary with an explicit error, and confirm the existing certificate-generation behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100