How to accept any SSL-Certificate

Hi I want to work an inhouse API that only has a self signed certificate. I am calling the API per VPN (its not publicly available) and the HTTP-Request won’t succeed because of the certificate.
How can I circumvent the SSL-checks and just work with that API?
Second problem: I call a /login path and receive a cookie which needs to be send with each following request. How would I do that? Is it even possible?

Thanks for your suggestions!

1 Like

Hey @Ahlgrimm!

Regarding the certificate issue, if it is an API that only you use, do you really need a self signed certificate? I use some APIs between my servers and UI Bakery, but never really bothered with certificates as I’m the only one using the APIs.
But if you have your reasons to use a certificate here is an answer from Stackoverflow.

As for the cookie or essentially some identifying value (JWT, UID, …), you would probably need to safe it on UI Bakery and pass it on every API call as a header or query param, it depends on how you implement the server.
image

1 Like

It’s an on premise SAP Business One API (Service Layer) and it is only reachable per HTTPS and a self signed certificate. I don’t want to “mingle” around with it. I want to use the API per Data Source.
But I am currently trying to build a relay with n8n (which has a proper certificate and ignores SSL problems on the SAP-API side).
Here I can store the cookies in redis and handle them.
Thanks for your effort!

2 Likes