Support for all RFC5280 standard extensions

Aperta
#370 13 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

Inizia da ./rcgen/src/certificate.rs e verifica come CertificateParams, CustomExtension e Attribute rappresentano attualmente le estensioni. Usa le sezioni 4.2.1.4, 4.2.1.5, 4.2.1.7, 4.2.1.8, 4.2.1.11, 4.2.1.14, 4.2.1.15, 4.2.2.1 e 4.2.2.2 di RFC5280 come requisiti. Il lavoro sarà completato quando le estensioni standard mancanti avranno un supporto definito, invece di richiedere una codifica personalizzata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi,

first of all, thank you for this project.

Over the past few months, I have started writing and increasingly enjoying Rust. To be in full control of my PKI, develop a better understanding of the x.509 standard and hone my programming abilities, I set out do write a simple certificate management application that provides defaults that are to my liking, which is how I ended up here.

Going by ./rcgen/src/certificate.rs, not all extensions defined in RFC5280 are built-in to this library but instead, support for more extensions is provided via the CustomExtension and Attribute structs.

The missing standard extensions seem to be:

I think the ones that are not part of CertificateParams and not mentioned in the list above are automatically provided when signing but didn't confirm.

For now, I was looking to implement the Certificate Policies extension on my own but found myself unable to due to my missing experience in ASN.1 encoding (or encoding in general).

To be successful in implementing the extension(s) correctly, I'd like to ask for some guidance. If my Implementation is good enough, maybe I could re-contribute them to this project. Please don't expect too much though as I currently have little time to spare for these projects.

Best,
Gab

P.S.: While I'm already asking, I noticed that this Rust codebase as well as many other popular Rust projects seem to use few long over many short files which is the opposite of what I would usually do. For example, you decided to use one file for OIDs (oid.rs) and a 1496 line file (certificate.rs) for extensions and certificate parameters. I would usually have created an extensions module with one file per extension to keep the files short and easy to understand as well as avoid merge conflicts to the greatest extend possible. How come long files are the preferred way?

P.P.S.: Are there any resources besides RFC5280 that I am missing? Going by the IETF datatracker, it is still just a proposed standard but all implementations I know of reference 5280. Is there no actual, reliable standard around PKI?

Lingua principale
Rust
Stelle
516
Fork
160
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rustls/rcgen

Tutte le issue di rustls/rcgen

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.