Skip to main content
12-Amethyst
October 28, 2019
Solved

.NET SDK Agent - https (wss) configuration failed

  • October 28, 2019
  • 1 reply
  • 1449 views

Hi everybody,

I'm trying to configure my .NET Agent to communicate to Thingworx over https (wss), but on the "start" method it gives me back this error.

 

com.thingworx.communications.client.TwApiWrapper Error: 0 : [Error] Error intializing SSL connection
com.thingworx.communications.client.TwApiWrapper Error: 0 : [Error] twWs_Connect: Error restarting socket. Error 0

 

 

Actually I've 

Server:

I've currently configured out the certificate chain for TW tomcat, and I'm able to use it via Chrome (over https) and it's secure as well (since I've added my SelfSigned CA as Trusted Auth).

Client:

The configuration on this client is the following:

 

// TLS
 CertFileInfo serverCertFileInfo = new CertFileInfo();
 serverCertFileInfo.FilePath = ConfigurationManager.AppSettings["ServerCertificateFilePath"].ToString();
 serverCertFileInfo.CertType = 0; // '0' for axTLS
 config.ServerCertFileInfo = serverCertFileInfo;
 
 config.AllowSelfSignedCertificates = Boolean.Parse(ConfigurationManager.AppSettings["AllowSelfSignedCertificates"].ToString());
 // non verifica il certificato del server
 config.DisableCertValidation = Boolean.Parse(ConfigurationManager.AppSettings["DisableCertValidation"].ToString());

 

Best answer by nishanair

Hi @AlessandroN

 

Can you please confirm if ciphers have been updated on Tomcat? Kindly refer the following article for steps to add and replace ciphers and protocols on Tomcat. 

Article link: https://www.ptc.com/en/support/article?n=CS286924

 

Thanks, 

 

Nisha

1 reply

nishanair5-Regular MemberAnswer
5-Regular Member
October 28, 2019

Hi @AlessandroN

 

Can you please confirm if ciphers have been updated on Tomcat? Kindly refer the following article for steps to add and replace ciphers and protocols on Tomcat. 

Article link: https://www.ptc.com/en/support/article?n=CS286924

 

Thanks, 

 

Nisha

12-Amethyst
October 30, 2019

Hi, that is exactly what I missed. Thanks, it worked like a charm.