Skip to main content
1-Visitor
April 19, 2017
Question

How to import certificate for Https connection?

  • April 19, 2017
  • 2 replies
  • 3334 views

hi,

i need to use SSL certificate for connection. i have the certificate for secure URL. but don't know how to import it?

var url="https://xyz.com/api/getJson"

var params = {

  proxyScheme: undefined /* STRING */,

  headers: undefined /* JSON */,

  ignoreSSLErrors: undefined /* BOOLEAN */,

  useNTLM: undefined /* BOOLEAN */,

  workstation: undefined /* STRING */,

  useProxy: undefined /* BOOLEAN */,

  withCookies: undefined /* BOOLEAN */,

  proxyHost: undefined /* STRING */,

  url: url /* STRING */,

  timeout: undefined /* NUMBER */,

  proxyPort: undefined /* INTEGER */,

  password: undefined /* STRING */,

  domain: undefined /* STRING */,

  username: undefined /* STRING */

};

    // result: JSON

    var json = Resources["ContentLoaderFunctions"].GetJSON(params);

Can anyone help to how to  import certificate on thingworx.

Thanks,

Dinesh

2 replies

5-Regular Member
April 19, 2017

Do you need the certificate in order to the external REST call shown here? Or to access ThingWorx itself in SSL? In the former case, does the certificate go in the header? If so, you could upload the certificate to a file repository and then load the text into the header using LoadText. I have never done this myself, so maybe someone else here knows more.

ds-211-VisitorAuthor
1-Visitor
April 20, 2017

actually we are not passing the certificate on header. we need Secure connection between thingworx and server.

any other way can we achieve it?

1-Visitor
April 20, 2017

Hi, is this what you are looking for ? Install a Free SSL Certificate from Let's Encrypt in Thingworx

ds-211-VisitorAuthor
1-Visitor
April 25, 2017

i have one doubt, here we use only openssl certificate or own custom certificate also.