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

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

SOLVED
Highlighted
Participant

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

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..., 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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

Seems like the fix version is CSDK 2.1.2

View solution in original post

8 REPLIES 8

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

What version of C SDK are you using?

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

Hi!

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

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

Seems like the fix version is CSDK 2.1.2

View solution in original post

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

Thank you. Will try that.

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

Please let me know if it works with the newer version.

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

Just checking in to see if you tried the newer version of CSDK.

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

Hi!

 

I tried C SDK 2.2.1 and it worked well. Thank you for the help!

Re: "TW_VALIDATE_CERT: Certificate rejected" is output on Start Tunnel with a Remote Acces

Thank you for the update, glad to hear (read) it worked. I updated the article you referenced to reflect the fix version for c sdk.
Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________