Closed
Description
Specification
We want the ability to generate the TLS cert chain and private key PEMs for testing. We should also create fast-check
arbitraries for this.
We need to replicate the KeyPair
generation, x509
certificate creation and PEM format from the Polykey
methods. Since these will be used for testing, the types can be striped down to primitives and any extra information can be as placeholder as possible. Refer to the keys
domain in Polykey
for how these are created.
Additional context
- Related Enable TLS Configuration with in-memory PEM strings #2
- Does boringssl support Ed25519 certificates? cloudflare/boring#113
- How to get Ed25519 x509 certificates working with quiche? cloudflare/quiche#1482
Tasks
- Create simplified method for generating key pairs.
- Create simplified method for generating
x509
certificates - Create simplified method for generating cert chain and private key PEM formats.