oAuth2 with digital certificate

Hey guys,

I’m starting with n8n and have done some integrations with payment platforms, searching for notes, etc., but I have a question regarding the type of authentication of a service that I would like to integrate,

It uses oAuth2 with digital certificate

Where in their documentation the following message appears:

curl -i -X ​​POST
-H “Authorization:Basic ZGphUjIxUEdvWXAxaXlLMm4yQUNPSDlSRWRVYjpPYlJzQUpXT0w0ZnYyVHAyN0QxdmQ4ZkIzT3RlCg”
-H “Role-Type:THIRD PARTY”
-H “Content-Type:application/x-www-form-urlencoded”
-d ‘grant_type=client_credentials’
–cert-type P12
–cert certificate_file.p12:certificate_password
https://autenticacao.sapi.serpro.gov.br/authenticate

This p12 certificate can also be in pfx format, but I couldn’t do it either,

Would anyone have any suggestions on how to do this?

I would be very grateful, and I would like to congratulate and thank in advance everyone who can help and collaborate in the development of this excellent application

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:

hello @floresesampaio

I suppose in n8n it only possible within HTTP Request node

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