chai-http icon indicating copy to clipboard operation
chai-http copied to clipboard

Using chai-http for mutual ssl

Open calimero921 opened this issue 5 years ago • 0 comments

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.

calimero921 avatar Jan 22 '20 16:01 calimero921