-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
There should be an ability to add client certificates to the new TLS connection. While this feature is implemented in web clients on the browser side (and not allowed from the code side), it's important to have ability to specify client certificates from code on the server side.
Some apps use client certificates as an authentication technology, so it might be critical.
It could look like an option properties tlsKey
, tlsCert
or as an object property tls
with key
and cert
properties:
const socket = connect('https://example.com', {
tls: {
key: clientKey,
cert: clientCert,
},
)
The key and certificate values could be WebCrypto API primitives or TypedArray, ArrayBuffer, DataView instances.
Metadata
Metadata
Assignees
Labels
No labels