Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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
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?
Hi, is this what you are looking for ? Install a Free SSL Certificate from Let's Encrypt in Thingworx
i have one doubt, here we use only openssl certificate or own custom certificate also.
If you have already the certificate, the certificate can be imported to generate the .keystore for tomcat.