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
- Generate a encrypted private key file in a format that the
uWebsockets can load with a provided passphrase.
- Update the
ClientServer to use this when starting the uWebsockets server.
Specification
In #506 we found that the
uWebsocketslibrary 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
uWebsocketlibrary can use. Ideally we can use the peculiarwebcrypto,asn1-schemaandasn1libraries 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
PrivateKeyInfoseems to be missing0x04 0x20PeculiarVentures/asn1-schema#82Tasks
uWebsocketscan load with a provided passphrase.ClientServerto use this when starting theuWebsocketsserver.