-
Notifications
You must be signed in to change notification settings - Fork 5
Closed as not planned
Labels
developmentStandard developmentStandard developmentr&d:polykey:core activity 2Cross Platform Cryptography for JavaScript PlatformsCross Platform Cryptography for JavaScript Platforms
Description
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
- Related Websocket for Client Service API #506
- Summary Websocket for Client Service API #506 (comment)
- Support for encrypted PEM PeculiarVentures/x509#12
- https://doc.libsodium.org/secret-key_cryptography/aead/aes-256-gcm
- Creating PKCS8
PrivateKeyInfoseems to be missing0x04 0x20PeculiarVentures/asn1-schema#82 - https://www.openssl.org/docs/man1.1.1/man1/openssl-pkcs8.html
- https://datatracker.ietf.org/doc/html/rfc5208#section-6
Tasks
- Generate a encrypted private key file in a format that the
uWebsocketscan load with a provided passphrase. - Update the
ClientServerto use this when starting theuWebsocketsserver.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard developmentr&d:polykey:core activity 2Cross Platform Cryptography for JavaScript PlatformsCross Platform Cryptography for JavaScript Platforms