Skip to content

Encrypted private key PEM format #508

@tegefaulkes

Description

@tegefaulkes

Specification

In #506 we found that the uWebsockets library needed to read SSL keys and certs from the file system. Given this we need to write the cert chain PEM and private key PEM files to the file system so we can provide them to the web socket server.

To this end we need to generate a encrypted private key PEM format that the uWebsocket library can use. Ideally we can use the peculiar webcrypto, asn1-schema and asn1 libraries to generate this format.

Given the crypto ecosystem in JS and node and the level of required knowledge, this issue is pretty tricky to tackle.

Additional context

Tasks

  1. Generate a encrypted private key file in a format that the uWebsockets can load with a provided passphrase.
  2. Update the ClientServer to use this when starting the uWebsockets server.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions