cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How to import certificate for Https connection?

ds-21
1-Newbie

How to import certificate for Https connection?

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

5 REPLIES 5
ttielebein
12-Amethyst
(To:ds-21)

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.

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

any other way can we achieve it?

qngo
5-Regular Member
(To:ds-21)

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

ds-21
1-Newbie
(To:qngo)

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

qngo
5-Regular Member
(To:qngo)

If you have already the certificate, the certificate can be imported to generate the .keystore for tomcat.

Top Tags