Skip to content

Using chai-http for mutual ssl #266

Open
@calimero921

Description

@calimero921

Could you manage ca, cert and key "field" from superagent to enable the mutual ssl authentication.

In the actual version (4.3.0) these fields are available, but seems not to be realayed to superagent.

eg:
superagent
.get(url)
.ca(cacertbuffer)
.cert(clientcertbuffer)
.key(clientkeybuffer)
.end((error, response) => {
...
})
sends the request with certificate to the server

but :
chai.request(serverUrl)
.get(urlPath)
.ca(cacertbuffer)
.cert(clientcertbuffer)
.key(clientkeybuffer)
.end((error, response) => {
...
})
only sends the request without any certificate (but is steel valid for Node).

Thanks

Regards.

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