oxidecomputer / pki-playground

Tool for generating non-trivial X.509 certificate chains
Mozilla Public License 2.0
29 stars 2 forks source link

Add support for CSR generation. #48

Closed flihp closed 10 months ago

flihp commented 10 months ago

PKCS#10 / RFC 2986 certificate signing requests (CSR) are made up of:

CSRs are a subset of the x509 certificate structure we already generate and so this commit draws heavily from the existing code. Some refactoring was required to prevent duplication of the code that loads the required keys and config entities. The reset of this commit is a pretty mechanical conversion of config entries from the KDL file, to the rust types from spki & x509-cert crates.