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

Connect Agent .NET by WSS to Thingworx

Highlighted
Regular Member

Connect Agent .NET by WSS to Thingworx

Hi all,

I'm trying to connect my .NET agent to Thingworx using a secure websocket connection (WSS), I've already configured my tomcat, and from Chrome it works successfully on HTTPS.

 

1 - Every time i try to connect, the client gives me back this error 

(ATTACHED_1)

 

2 - the client has been configured this way, using a config file for edit connection's details.

(ATTACHED_2)

 

3 - I can't understand why i have to specify the location of the Server Certificate on the Client side!
     Doesn't it should be retrieved by the client on the initial handshake?


Thanks in advance!!

5 REPLIES 5

Re: Connect Agent .NET by WSS to Thingworx

Hello, Allessandron: 

 

Can you please post the error you are seeing?  It does not show up in the post.

 

Regards,

-Chris Kaminski

Re: Connect Agent .NET by WSS to Thingworx

Hi ckaminski, I'm sorry for that :D
I've just edited.

Re: Connect Agent .NET by WSS to Thingworx

Ideally the server would provide it's public key and the intermediate CA key as well to build a route of trust to a known root.   If you have no known roots in your environment you would need to provide that to the end device.

 

Are you using a self-signed certificate?  Is so, the following properties are set to true, I assume:

  • ClientConfigurator.AllowSelfSignedCertificates = true
  • ClientConfigurator.DisableCertValidation = true

 

Re: Connect Agent .NET by WSS to Thingworx

Hi Alessandro,

What flavor of the .NET SDK are you using ? FIPS or AxTLS ?

 

Re: Connect Agent .NET by WSS to Thingworx

Hi @AlessandroN.

 

If you have found a solution to your problem, please post it here or mark one of the previous responses as the Accepted Solution.  If you are still having issues, please let us know.

 

Regards.

 

--Sharon