Article - CS281541

"Error opening non-TLS socket" when making connection to SSL-enabled ThingWorx server with self-signed certificate using ThingWorx Edge MicroServer

Modified: 29-Sep-2025   


Applies To

  • ThingWorx Platform 8.1 to 10.0
  • ThingWorx Edge MicroServer 5.0 to 5.5

Description

  • ThingWorx Edge MicroServer (EMS) and Lua Script Resource (LSR) unable to make connection to ThingWorx that is SSL enabled with Self Signed Certificate
  • What parameters should be set in the configuration files to connect to SSL-enabled ThingWorx server while using EMS?
  • How to connect to a Thingworx Server that is SSL enabled with Self Signed Certificate:
    [ERROR] YYYY-MM-DD hh:mm:ss,ms UnencryptedClientStream::doopen: Error opening socket.  Error: 111
    [ERROR] YYYY-MM-DD hh:mm:ss,ms HttpClient::initialize: Exception while opening connection request to localhost. Error: Error opening non-TLS socket [localhost:8001]
    [ERROR] YYYY-MM-DD hh:mm:ss,ms emsRequestHandler: Error executing request on Things/RemoteThing_WithEMS/Services/GetMetadata

 

This is a printer-friendly version of Article 281541 and may be out of date. For the latest version click CS281541