Not able to pass on the certificates using chakram library.
- Dominant language
- JavaScript
- Stars
- 898
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to pass certificate (cert.pem and key.key) in the chakram.get using the following options:
var config = {
agentOptions : {
key: fs.readFileSync(certfilePath),
cert: fs.readFileSync(keyfilePath),
Passphrase: passPhrase,
securityOptions: 'SSL_OP_NO_SSLv3',
rejectUnauthorized : false,
secureProtocol: 'SSLv3_method'
}
};
chakram.get(endPoint,queryString,config);
Getting the following error:
400 No required SSL certificate was sent
400 Bad Request
No required SSL certificate was sent
nginx
when i analysed the Request object inside the Response object, i am not getting the **agentOptions** .
I am not sure when I am passing the agentOptions in the Get request, still not able to set them.
Does someone else getting this error too while trying to send Certificates in the GET call.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue only identifies chakram.get and the supplied agentOptions; no repository file or test is named. Start by tracing how chakram.get handles request options and verify whether agentOptions reaches the underlying request, then reproduce the mutual-TLS call; done means the configured certificate is sent and the request no longer receives the reported 400 response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100