Skip to main content
Arena Solutions Logo
      • Community
      • Recently active topics
      • Unanswered questions
      • Community
          • PTC Community Announcements78
          • PTC Community Feedback281
          • Welcome & How-To's39
          • PTC eSupport Help Discussions448
          • PTC eSupport Help Ideas62
          • PTC University Training338
          • PTC University LEARN Questions98
          • Expert Session Recording Library1
          • PTC/USER799
          • PTCooler "OffTopic"695
          • Codebeamer390
          • Systems/Software Engineering2252
          • Vuforia Chalk236
          • Vuforia Studio3034
          • Vuforia Studio and Chalk Tech Tips99
          • Vuforia Expert Capture264
          • 3D Part & Assembly Design21558
          • Analysis2141
          • Customization3151
          • Manufacturing (CAM)1106
          • System Administration4982
          • Creo Parametric Tips443
          • Drafting282
          • Modeling292
          • Model Manager18
          • System Administration81
          • Other Creo Products (View/Sketch/Illustrate/Layout/ Schematics and Creo Direct)1168
          • Mfg Solutions & Apps569
          • IoT & Connectivity Tips1071
          • Kepware953
          • ThingWorx14946
          • Ask the Experts About the Licensing App12
          • Windchill16066
          • Windchill Customization2648
          • Windchill Navigate352
          • Windchill Tips96
          • Arbortext3753
          • Mathcad14738
          • Mathcad Installation1383
          • Mathcad Tips69
          • Ask Me Anything About Mathcad1
          • PTC Education Forum4094
          • PTC "Working Group" Info8
          • Creo (Previous to May 2018)5673
          • Integrity Lifecycle Manager New Web UI25
          • B&WSoftware - The Creo/Toolkit Experts58
          • Model Based Enterprise14
          • Community Content Groups52
          • Innovation Lab2
          • IoT Archive27
  • Events
  • Groups
Arena Solutions Logo
  • Create topic
  • Login
  • Home
  • Community
  • Community
  • IoT & Connectivity
  • ThingWorx
  • ThingWorx Developers
  • Error opening non-TLS socket[localhost:8001]
G
gquiroga1-Visitor
1-Visitor
Forum|Forum|7 years ago
May 31, 2018
Question

Error opening non-TLS socket[localhost:8001]

  • Forum|Forum|7 years ago
    May 31, 2018
  • 1 reply
  • 3104 views

When running wsems I get the following errors:

UnencryptedClientStream::doopen:Error opening socket. Error: 111

 

HttpClient::initialize: Exception while opening connection request to localhost. Error: Error opening non-TLS socket [localhost:8001]

 

 

  • Troubleshooting
  • Connectivity
This topic has been closed for replies.

1 reply

S
smanley5-Regular Member
5-Regular Member
Forum|Forum|7 years ago
May 31, 2018

Are you using a self signed certificate to connect the WSEMS? We have an article that may help you resolve the issue. 

EMS and LSR are unable make a connection to SSL enabled ThingWorx server using EMS 5.4.0

 

  • Below are the sample config.json and config.lua that will work for a server with self signed certificate
  • Please find detailed explanation with examples from the Edge Help Center

WS EMS - Config.json

"http_server": {
"host": "localhost",
"port": 8000,
"ssl": true,
"authenticate": false,
"use_default_certificate" : true
},
"certificates": {
"validate": false,
"allow_self_signed": true
}


LSR - config.lua

-- EMS Connection Configuration
scripts.rap_host = "localhost"
scripts.rap_port = 8000

-- EMS Connection TLS Configuration
scripts.rap_ssl = true
scripts.rap_deny_selfsigned = false
scripts.rap_validate = false

-- EMS Connection Authentication
-- Configuration
scripts.rap_server_authenticate = false

-- HTTP Server Configuration
scripts.script_resource_host = "localhost"
scripts.script_resource_port = 8001

-- HTTP Server TLS Configuration
scripts.script_resource_ssl = true
scripts.script_resource_use_default_certificate = true

-- HTTP Server Authentication
-- Configuration
scripts.script_resource_authenticate = false
PTC
G
gquiroga1-VisitorAuthor
1-Visitor
Forum|Forum|7 years ago
May 31, 2018

Hi smanley,

 

That is the configuration I've got on both the config.json and the config.lua files. 

When I try to run the LSR it get's stucked on "Initializing TLS Client" even if SSL is deactivated.

S
ShravanS5-Regular Member
5-Regular Member
Forum|Forum|7 years ago
September 10, 2018

Hi @gquiroga,

Did you get it working? I am facing the same issue here

Powered by Gainsight
Terms & ConditionsCookie settingsAccessibility statement

Sign up

Already have an account? Login

Please use your PTC eSupport account.

Login

Welcome to the PTC Community

Please use your PTC eSupport account.

Login

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

Back to overview

Scanning file for viruses.

Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.

OK

This file cannot be downloaded

Sorry, our virus scanner detected that this file isn't safe to download.

OK