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

How to import certificate for Https connection?

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

Tags (2)
5 REPLIES 5

Re: How to import certificate for Https connection?

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.

Re: How to import certificate for Https connection?

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

any other way can we achieve it?

Re: How to import certificate for Https connection?

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

Re: How to import certificate for Https connection?

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

Re: How to import certificate for Https connection?

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