Skip to content

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

Description

@AnishVohra

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions