• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Login
  • Automation Institute
  • Documentation
  • Community Forums
New Topic
Discussions Developer Community Connector SDK
R

Robin Peters

started a topic almost 2 years ago

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

R

Robin Peters

said almost 2 years ago

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:

image


But I get connection failed error:



image


So I checked my test URL, but it looks nice:

 

  test: lambda do |_connection|
    get("https://xx.xxxx.com/instance/connectors/mConnector.php")
  end,

 

R

Robin Peters

said almost 2 years ago

Solved with strict = false

 

    authorization: {
      apply: lambda do |connection|
        tls_server_certs(
          certificates: [connection['certificate']],
          strict: false
        )
      end
    },

 

Connection is now working.


Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2022   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato
Topic views count