ThingWorx Edge C SDK > How to Set Up Security > Troubleshooting Connection Errors (C SDK v.1.4.0 and earlier)
Troubleshooting Connection Errors (C SDK v.1.4.0 and earlier)
If your application uses an earlier version of the C SDK than 1.4.0 and it cannot establish a secure (SSL/TLS) WebSocket connection using the C SDK, you may notice one of the following errors:
Error initializing SSL connection
twWs_Connect: Error restarting socket. Error 0.
These errors are known to occur after the version of Tomcat used for ThingWorx Platform has been upgraded to 8.0.35 or higher and versions of the C SDK earlier than 1.4.0 are in use in the application. In the later versions of Tomcat, RSA-based ciphers are disabled by default due to forward secrecy concerns. The ciphers supported by the axTLS libraries earlier than v.2.1.2.1 (the version in the C SDK 1.4.0) are disabled by default by this change to Tomcat. When a C SDK device tries to connect, an error “No compatible ciphers” is returned.
It is strongly recommended that you upgrade to the latest version of the C SDK and use the OpenSSL library provided in the distribution bundle. After the upgrade, you need to rebuild your application. As of release 2.2.1, the axTLS libraries are no longer provided in the distribution bundle. As of v.2.2.5 of the C SDK, OpenSSL 1.1.1c is supported. Version 2.2.12 of the C SDK upgrades to OpenSSL v.1.1.1j. OpenSSL 1.1.1 does not support FIPS mode and is not backwards compatible to OpenSSL 1.0.2. FIPS mode requires OpenSSL 1.0.2 or earlier.
Was this helpful?