How to make api calls with .p12 certificate?
I need to access a payments api that provides a .p12 certificate and requires it to be sent in calls.
Best Answer
-
You can use mutual TLS (which is usually what is referenced here - the kind where you are providing a key like this to authenticate your request) in the lambda in Xano. Yo umake some code in the lambda It requires using the https and either fetch or axios libraries. You can do this in Xano - we've worked this before in State Change.
Here's a snapshot of the code as I'm using it in a connection I have going today. The key is to initialize an Agent from https with your certificates, and then have the fetch library use the agent for its communicationObviously this isn't the easiest path: it's definitely part of the "hardest 5%" we work on at State Change in our office hours and forum.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback