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?
Solved! Go to Solution.
I tried C SDK 2.2.1 and it worked well. Thank you for the help!