API Call using certificate and key file to get token

hi friend
how to call an api using cert file and key
like this

OAUTH_TOKEN_RESPONSE=$(curl
-X POST
-H “Content-Type: application/x-www-form-urlencoded”
-d $DADOS
–cert .crt
–key .key
$URL_OAUTH)

thanks

I reviewed the API docs from bancointer. It doesn’t look like you need a cert or key. I’m not sure why the CURL recipe shows them, but the PHP and Python do not.

Try setting it up with just grant_type, client_id, client_secret, and scope.

hi friend
just return err 400
I already tried that
and really, the documentation is not clear on this subject
I also saw the php and python calls and I didn’t understand how they work

I tested it on bubble and it worked perfectly
which leads me to believe that this is the way

Awesome! I don’t think Wappler’s API Action supports SSL Certificate authentication.

I hope wappler does
It’s the only way to connect to this bank

Maybe @Teodor or @George can provide a definitive answer.

1 Like

hi guys
any news about ?

@patrick have you any info to add about this conection type ?

Have we made any progress on this topic?

I ask this because in Brazil, where we operate, this SSL certificate is often used in connection requests with payment methods and banks.

At the moment, I have to resort to N8N as a workaround for this issue; we may have something integrated in the future?

Place the certificate/key in environment variables (they are simply strings) and use those with the API Action by adding them to the Query or Header params whichever the API endpoint expects.

1 Like