Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using chai-http for mutual ssl #266

Open
calimero921 opened this issue Jan 22, 2020 · 0 comments
Open

Using chai-http for mutual ssl #266

calimero921 opened this issue Jan 22, 2020 · 0 comments

Comments

@calimero921
Copy link

calimero921 commented Jan 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant