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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

.NET SDK Agent - https (wss) configuration failed

AlessandroN
11-Garnet

.NET SDK Agent - https (wss) configuration failed

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());

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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.

Top Tags