N8N HTTP Request with SSL Certificate Auth

I’ve been working on setting up workflows in n8n that require secure communication with external APIs. Specifically, I need to authenticate HTTP requests using an SSL/TLS certificate (<certificate_name>.pfx ). However, I’ve encountered an issue when trying to implement this within the HTTP Request node.

In Credentials option, I can select SSL Certificate. But facing issues with placing an certificate.pfx.
Where should I include the certificate. Should I place a path of certificate in the fields i.e.
Certificate:
CA:
Passphrase:
PrivateKey:

I am running n8n on docker on PORT 5678. Let me know how to configure it

Information on your n8n setup

  • n8n version:
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: MAC

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

.pfx file usually contains both the public, as well as the private key.
You need to extract the public key out of this file, and use just that with n8n as Certificate.

If that does not work, try adding the private key in PrivateKey as well.

2 Likes

I cannot attach the certificates as there is no option to select file so what should it be?

please try pasting the contents of the public key extracted out of the pfx file

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.