# SSL Certificate for Http Request \[GOT CREATED\]

**URL:** <https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086>\
**Category:** Feature Requests (done)\
**Created:** [June 1, 2021, 12:33pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086 "2021-06-01T12:33:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigoscdc](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rodrigoscdc/32/4813_2.png) [@rodrigoscdc](https://community.n8n.io/u/rodrigoscdc)\
**Post date:** [June 1, 2021, 12:33pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/1 "2021-06-01T12:33:14Z")

</div>

There is any way to use certificates to make Http requests with this node?

like we can do in Postman certificates option.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/1/1d0a4ac9822fa0c80515ccce5a4e908eb07c3c2d.png)

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [June 1, 2021, 11:40pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/2 "2021-06-01T23:40:29Z")

</div>

Currently that is no possible. You can make a feature request.

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [June 4, 2021, 10:41am UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/3 "2021-06-04T10:41:05Z")

</div>

Hey @rodrigoscdc!

I’ve turned this into a feature request. Don’t forget to vote it 🙂

---

<div class="post-metadata">

**Author:** ![Stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stefan](https://community.n8n.io/u/Stefan)\
**Post date:** [June 5, 2021, 2:28pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/4 "2021-06-05T14:28:44Z")

</div>

Hi, harshil, i have the same problem. I use a nginx proxy on the same server for that that works.  
[https://serverfault.com/questions/622855/nginx-proxy-to-back-end-with-ssl-client-certificate-authentication](https://serverfault.com/questions/622855/nginx-proxy-to-back-end-with-ssl-client-certificate-authentication)

Thanks,  
Stefan

---

<div class="post-metadata">

**Author:** ![rodrigoscdc](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rodrigoscdc/32/4813_2.png) [@rodrigoscdc](https://community.n8n.io/u/rodrigoscdc)\
**Post date:** [September 22, 2021, 2:20pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/5 "2021-09-22T14:20:54Z")

</div>

Hello, any update about this feature? Is it in your roadmap of development?

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [September 22, 2021, 2:33pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/6 "2021-09-22T14:33:32Z")

</div>

I do not think so but not completely sure. @David has a better view of what is on our internal roadmap. Perhaps, this is something we add to the HTTP node V2 which is probably somewhere in our roadmap.

Just for future reference, we probably have to set the agentOptions to achieve this.

[https://www.npmjs.com/package/request#using-optionsagentoptions](https://www.npmjs.com/package/request#using-optionsagentoptions)

---

<div class="post-metadata">

**Author:** ![rodrigoscdc](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rodrigoscdc/32/4813_2.png) [@rodrigoscdc](https://community.n8n.io/u/rodrigoscdc)\
**Post date:** [March 2, 2022, 11:50am UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/7 "2022-03-02T11:50:42Z")

</div>

@sirdavidoff Do you have any update if this feature request is in your scope of development?  
Thanks for your attention.

---

<div class="post-metadata">

**Author:** ![Claudio\_Balbino](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/claudio_balbino/32/7015_2.png) [@Claudio\_Balbino](https://community.n8n.io/u/Claudio_Balbino)\
**Post date:** [March 2, 2022, 4:33pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/8 "2022-03-02T16:33:29Z")

</div>

I am very interested in this feature and have already voted on the feature request.

Here in Brazil, open banking is being implemented and there is a bank that has provided api that requires access with crt and key.

---

<div class="post-metadata">

**Author:** ![sirdavidoff](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sirdavidoff/32/2423_2.png) [@sirdavidoff](https://community.n8n.io/u/sirdavidoff)\
**Post date:** [March 4, 2022, 8:14am UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/9 "2022-03-04T08:14:44Z")

</div>

We’re going to tackle the HTTP node once we have the public API out, at which point we’ll take a decision on this. But can very much see why it would be useful.

---

<div class="post-metadata">

**Author:** ![Guilherme\_Hirsch](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/guilherme_hirsch/32/5105_2.png) [@Guilherme\_Hirsch](https://community.n8n.io/u/Guilherme_Hirsch)\
**Post date:** [March 7, 2022, 1:02pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/10 "2022-03-07T13:02:38Z")

</div>

In my case, it will be very useful to access the government soap apis from here. I’m an accountant, and through that I could integrate these requests from my clients through n8n, and a .pfx certification is required.

---

<div class="post-metadata">

**Author:** ![Jose\_Alejandro\_Diaz1](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jose_alejandro_diaz1/32/12513_2.png) [@Jose\_Alejandro\_Diaz1](https://community.n8n.io/u/Jose_Alejandro_Diaz1)\
**Post date:** [April 22, 2022, 4:35pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/11 "2022-04-22T16:35:17Z")

</div>

This will be an important feture for the Cloud vertion too

---

<div class="post-metadata">

**Author:** ![pradilla](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pradilla/32/2247_2.png) [@pradilla](https://community.n8n.io/u/pradilla)\
**Post date:** [April 22, 2022, 4:45pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/12 "2022-04-22T16:45:31Z")

</div>

Voted!  
We think this feature will be very interesting also for n8n cloud as there are other solutions that already have it. aka [make.com](http://make.com) ([integromat.com](http://integromat.com)). Examples below.

It is interesting the way the handle the cert and key files. They have a helper, that extracts the key which is what actually gets saved in the credentials module.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/a/a3dea0642cc41563a6fea4078dca5a7e3bbd494b.png)

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/7/79eb8756bd8d5a667f3ebc473059a92ed853d705.png)

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/2/28590ce801d72b2f4dd064390efb4e36543f8d23.png)

Now, to be able to use it in the meantime, some post above suggests to import using npm request ([https://www.npmjs.com/package/request#using-optionsagentoptions](https://www.npmjs.com/package/request#using-optionsagentoptions)) but I see this is deprecated. Any idea on new npm option that is not deprecated? @RicardoE105

Thanks!  
Andres

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [April 22, 2022, 4:53pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/13 "2022-04-22T16:53:55Z")

</div>

Hey @pradilla,

You could use Axios and pass it a nodejs https.agent that is configured to use a cert and key.

---

<div class="post-metadata">

**Author:** ![pradilla](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pradilla/32/2247_2.png) [@pradilla](https://community.n8n.io/u/pradilla)\
**Post date:** [April 23, 2022, 1:24pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/14 "2022-04-23T13:24:05Z")

</div>

Great @Jon !!! Any chance you can share just a short snippet or workflow node code to copy and paste with an example please?

Also. I can use this on one of my hosted n8n, but would really need it in my cloud version. So, can the axios lib be added to cloud? same as you guys added the crypto one? @maxT

Found this, can any of you guys help me modify to fit n8n function syntax and return the json body?  
Thanks in advance!! =)

const agent = new https.Agent({  
key: fs.readFileSync(\_\_dirname + ‘/path/to/keyfile.key’),  
cert: fs.readFileSync(\_\_dirname + ‘/path/to/certfile.cert’),  
rejectUnauthorized: false  
keepAlive: true  
});

const data = JSON.stringify({  
…  
});

const axiosConfig = {  
httpsAgent: agent,  
headers: {  
‘Content-Type’: ‘application/json’,  
‘Content-Length’: data.length,  
}  
};

const response = await axios.post(‘[https://someendpoint](https://someendpoint)’, data, axiosConfig).then(r =\> {  
console.log(‘r’, r);  
})

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [April 23, 2022, 6:00pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/15 "2022-04-23T18:00:25Z")

</div>

n8n functions use JavaScript so what you have would in theory work if the paths are valid. You might need to pop in a couple of require lines to use the Axios config and https agent, when trying to run it you should get some errors that would help adapt it as needed.

---

<div class="post-metadata">

**Author:** ![pradilla](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pradilla/32/2247_2.png) [@pradilla](https://community.n8n.io/u/pradilla)\
**Post date:** [April 25, 2022, 12:32am UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/16 "2022-04-25T00:32:48Z")

</div>

> [@pradilla](#):
>
> fs.readFileSync(\_\_dirname + ‘/path/to/certfile.cert’)

Got it working!  
Thanks!

Needed these 3 modules and for now can not run on n8n cloud (https,axios,fs). If any ideas arise these would be more than welcome. @Jon @maxT

const https = require(‘https’)  
const axios = require(‘axios’);  
const fs = require(‘fs’);

Running axios like this:  
const response = await axios(options)  
Then in the options new Agent like this:  
httpsAgent : new https.Agent(agent),  
And the cert files pulled from local storage like this (documentation does say it can be a path or a URL:  
“keyfile”: fs.readFileSync(‘path/keyfile.key’),

---

<div class="post-metadata">

**Author:** ![Jose\_Alejandro\_Diaz1](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jose_alejandro_diaz1/32/12513_2.png) [@Jose\_Alejandro\_Diaz1](https://community.n8n.io/u/Jose_Alejandro_Diaz1)\
**Post date:** [November 5, 2022, 12:09am UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/17 "2022-11-05T00:09:16Z")

</div>

Hi All:  
I woud like to resume about this topic: SSL Certificate for HTTP Request on Cloud Vertion.

I’m not sure if In this post we have all the elements about the relevance, oportunities and possible approaches to send to de Product Team for their estimates. But one thing I’m sure is that this feature will add big value for the Cloud Vertion.

- @maxT @jan

---

<div class="post-metadata">

**Author:** ![Jose\_Alejandro\_Diaz1](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jose_alejandro_diaz1/32/12513_2.png) [@Jose\_Alejandro\_Diaz1](https://community.n8n.io/u/Jose_Alejandro_Diaz1)\
**Post date:** [December 10, 2022, 12:44am UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/18 "2022-12-10T00:44:51Z")

</div>

#cloud#feature-requests#security

I want to add SSL Certificate for Http Request on Cloud Version

---

<div class="post-metadata">

**Author:** ![Jose\_Alejandro\_Diaz1](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jose_alejandro_diaz1/32/12513_2.png) [@Jose\_Alejandro\_Diaz1](https://community.n8n.io/u/Jose_Alejandro_Diaz1)\
**Post date:** [December 15, 2022, 1:05pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/19 "2022-12-15T13:05:08Z")

</div>

Hey Guys.  
For all people following this topic **SSL Certificates for Http Request on Cloud Vertion** , this guy @pradilla is showing us a very nice /affordable way to implement it as an extension of current Oauth2 module bypassing the files handling in a clever way .  
Let’s check it : [HTTP with client certificate auth request](http://community.n8n.io/t/http-with-client-certificate-auth-request/20753)

With this… my hope for christmas 🎁 🎅 is to see this topic climbing to the top of the backlog tree 🎄🤣  
#cloud #feature-requests #core #security

---

<div class="post-metadata">

**Author:** ![pradilla](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pradilla/32/2247_2.png) [@pradilla](https://community.n8n.io/u/pradilla)\
**Post date:** [September 5, 2023, 12:50pm UTC](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086/20 "2023-09-05T12:50:17Z")

</div>

Hey @maxT, hope all is well! I just wanted to come here and see if there can be some traction with this FR that has 16 votes. some time back I got an answer from Ricardo who understood that this should not be so difficult. Placing that thread here for reference: [HTTP with client certificate auth request - Questions - n8n](http://community.n8n.io/t/http-with-client-certificate-auth-request/20753/2) @Jose_Alejandro_Diaz1

Thanks,  
Andres

[Next page](https://community.n8n.io/t/ssl-certificate-for-http-request-got-created/6086.md?page=2)
