-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Client certificate #284
Comments
You should be able to use a custom var agent = new https.Agent({
ca: fs.readFileSync('ca.pem')
});
axios.get(url, { agent: agent });
// or
var instance = axios.create({ agent: agent });
instance.get(url); Hope it helps! |
In my case, its a
|
axios uses https.globalAgent.options.ca = fs.readFileSync('ca.pem'); // Note: this is a global setting If you need help with using an SSL certificate with |
I am trying to run this project in browser. I cannot find https module available. Can you tell me how this was made possible? |
@voraparth91 You can configure axios to use specific certificates in Node.js, but not in browsers. |
@nickuraltsev Is there any other way you can suggest me where I can configure specific certificates in browser for XHR requests? |
Careful, the correct way to assign
|
Try below code worked ,thanks team.
|
I also encountered this problem, can you tell me how you solved it? |
I am using axios on node.js 4.2.x. how do i mention SSL CA certificate for connecting to one of the secured services ?
Can anybody point me to an example working code ?
The text was updated successfully, but these errors were encountered: