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

Not able to pass on the certificates using chakram library. #129

Open
AnishVohra opened this issue Aug 29, 2018 · 0 comments
Open

Not able to pass on the certificates using chakram library. #129

AnishVohra opened this issue Aug 29, 2018 · 0 comments

Comments

@AnishVohra
Copy link

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:

<title>400 No required SSL certificate was sent</title>

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.

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