Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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());
Solved! Go to Solution.
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
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
Hi, that is exactly what I missed. Thanks, it worked like a charm.