Skip to content

Add client certificates support #23

@teabroker

Description

@teabroker

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions