Allow CSR parsing to handle custom extensions

Open
#150 0 comments 2 reactions 0 assignees View on GitHub

@jean-airoldie is already working on this.

Since May 4, 2025.

  • #1 by @cpu — closed without merging
  • #164 by @cpu — closed without merging
  • #337 by @jean-airoldie — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
security

Research direction

Start with CertificateSigningRequest::from_der and the custom_extensions field documentation linked in the issue, then trace where UnsupportedExtension is produced. Determine how unknown or custom extensions should be handled, and verify that a CSR containing a user-defined extension parses successfully without losing the extension data.

Written by the indexing model from the issue text.

Description

Hi,

Currently when using a user defined custom_extensions, this causes the CSR parsing to error out with UnsupportedExtension.

Would it be possible to allow CSR parsing of custom extensions, such as by providing a closure to handle unknown extensions?

Dominant language
Rust
Stars
516
Forks
160
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rustls/rcgen

All issues in rustls/rcgen

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.