ok, I found this now:
https://docs.workato.com/developing-connectors/sdk/sdk-reference/ruby_methods.html#pre-defined-ruby-methods
Here the TLS stuff is documented. I tried to setup my connector as descriped. Added this to my apply section:
authorization: { apply: lambda do |connection| tls_server_certs( certificates: [connection['certificate']] ) end },
My field is defined this way:
{ name: "certificate", hint: "certificate from xxx; required for communication to defined instance", control_type: "plain-text-area" },
it is correctly displayed and filled:
But I get connection failed error:
So I checked my test URL, but it looks nice:
test: lambda do |_connection| get("https://xx.xxxx.com/instance/connectors/mConnector.php") end,
Solved with strict = false
authorization: { apply: lambda do |connection| tls_server_certs( certificates: [connection['certificate']], strict: false ) end },
Connection is now working.
Send us a ticket, we will try our best to assist you with your problem
Robin Peters
Write connector with certificate protection
Hi,
I want to connect some application which needs a specific certificate for communication.
I already defined my base connection configuration but I am not able to browse my application.
As far as I remember I was not able to use the URL in browser too unless I imported a defined certificate which I got from my service provider.
Is there any way to connect to those services which are protected by certificate? I did not find any documentation or earlier question about this. This is possible in the HTTP connector, so I think it will be possible here to. Can someone share me the documentation?
Best,
Robin