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).
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.