Support for all RFC5280 standard extensions
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
- Ambito
- cryptography, security
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:
- 4.2.1.4. Certificate Policies
- 4.2.1.5. Policy Mappings
- 4.2.1.7. Issuer Alternative Name
- 4.2.1.8. Subject Directory Attributes
- 4.2.1.11. Policy Constraints
- 4.2.1.14. Inhibit anyPolicy
- 4.2.1.15. Freshest CRL (a.k.a. Delta CRL Distribution Point)
- 4.2.2.1. Authority Information Access
- 4.2.2.2. Subject Information Access
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rustls/rcgen
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
-
CertificateSigningRequestParams::from_der can parse the wrong key typeForse già presa @jgreeer l’ha presa 47 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
-
0.15 release planningAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
Tutte le issue di rustls/rcgen
Issue simili
-
area: cli kind:docs priority: P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
swc-project/swc-ai-issues#164 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
pop-os/cosmic-player#367 ·
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
servo/rust-smallvec#873 ·