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
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).
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());
Solved! Go to Solution.