Skip to main content
1-Visitor
May 14, 2019
Solved

"TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Access Widget

  • May 14, 2019
  • 8 replies
  • 3569 views

Hi!

 

I develop a C SDK based application, which uses encryption. A server certificate is loaded with twApi_LoadCACert() function and everything works fine except tunneling.

 

When I try to establish a VNC connection (with using of the Remote Access Widget), I get this error: "TW_VALIDATE_CERT: Certificate rejected. Code: 20, Reason = unable to get local issuer certificate".

 

By default, the twTunnelManager should use the same twConnectionInfo structure as twApi so that all twConnectionInfo settings should be shared by twApi and twTunnelManager. So, I don't understand why I have this issue with tunneling only. Other subsystems, including the file manager, work fine.

 

I tried to load the certificate file for the tunnel manager with using of twTunnelManager_LoadCACert() function, but it didn't help. What really helps is just calling of twTunnelManager_DisableCertValidation(), but I want to have the connection to be secured.

 

I have found this article: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Access Widget, even ThingWorx successfully connected with EDGE MicroServer 5.4.0, which describes a similar issue with EDGE MicroServer. It is stated that the issue has been fixed but there is no information about how to do that.

 

Can you, please, help me with that?

Best answer by posipova

Seems like the fix version is CSDK 2.1.2

8 replies

20-Turquoise
May 15, 2019

What version of C SDK are you using?

Eugene1-VisitorAuthor
1-Visitor
May 15, 2019

Hi!

I'm using "c-sdk-2.1.1.636-master".

posipova20-TurquoiseAnswer
20-Turquoise
May 15, 2019

Seems like the fix version is CSDK 2.1.2