Perform API Action using self signed certificate

Hi everyone,

I’m new to Wappler and currently working on implementing a project that requires making API calls to an endpoint. These calls need to be configured with one or more hosts using locally generated certificates. These certificates are crucial for authentication, as requests are denied without them.

Has anyone successfully worked with this specific setup in Wappler? Or is this functionality not yet implemented? Any guidance or suggestions would be greatly appreciated!

Thank you in advance!

Hi,

I believe the correct term is "client certificate" :wink:

I don't think this is implemented in Wappler (because I've never seen anyone talking about it)

If it's not supported, creating a feature request to edit the API Action step to allow a loading client certificate would be a good idea. But feature requests are not always implemented in a timely manner (by the Wappler team), so the other solution is you'd be looking at creating a custom extension (or hiring someone to do it for you). But I think it would be relatively easy for the Wappler team to add client certificate support

Oh, really? That’s a shame.

Thanks for pointing that out—yes, "client certificate" is the correct term! :blush:

I had a feeling this might not be implemented yet, so it’s good to have confirmation. Creating a feature request seems like the only option for now. In the meantime, I’ll need to explore implementing it by building a custom extension or finding someone with the right expertise to assist me.

If you or anyone else has experience with custom extensions in Wappler, I’d greatly appreciate any tips or resources to help me get started!

Thanks again!

This user made an API Action for uploading files, maybe you could take a look to see if you could modify:

If you're looking to hire there's @ tbvgl that knows how to build custom extensions

But create the feature request, if you're lucky it's implemented quickly... Are you using PHP or NodeJS? (or something else?)

Thanks for the infos!

I will create the feature request right way.

I'm using NodeJS for the project.

Good! A random search how to use NodeJS to perform HTTP requests with client certificate showed it's not too difficult. If you're feeling adventurous you could also modify the core file (.js) that contains the API Action logic (method) to add the client certificate, but it wouldn't survive Wappler updates, it's just so you're not stuck waiting for someone to implement such feature

Thanks for the quick response, @Apple !

I might experiment with using a standalone solution to handle HTTP requests with a client certificate and see how well it integrates with my project. It seems like a more stable approach while waiting for this feature to (hopefully) be implemented in Wappler. However, my project also requires a refresh endpoint for the Bearer Token that is sent with every request, so I’ll need to account for that as well.

I really appreciate the advice—it’s great to know there are a few paths forward!

1 Like

Good choice!

1 Like