Skip to main content
Arena Solutions Logo
      • Community
      • Recently active topics
      • Unanswered questions
      • Community
          • PTC Community Announcements78
          • PTC Community Feedback283
          • Welcome & How-To's39
          • PTC eSupport Help Discussions452
          • PTC eSupport Help Ideas62
          • PTC University Training341
          • PTC University LEARN Questions99
          • Expert Session Recording Library1
          • PTC/USER802
          • PTCooler "OffTopic"699
          • Codebeamer397
          • Systems/Software Engineering2252
          • Vuforia Chalk237
          • Vuforia Studio3036
          • Vuforia Studio and Chalk Tech Tips99
          • Vuforia Expert Capture264
          • 3D Part & Assembly Design21588
          • Analysis2146
          • Customization3164
          • Manufacturing (CAM)1108
          • System Administration4989
          • Creo Parametric Tips443
          • Drafting282
          • Modeling293
          • Model Manager19
          • System Administration81
          • Other Creo Products (View/Sketch/Illustrate/Layout/ Schematics and Creo Direct)1173
          • Mfg Solutions & Apps569
          • IoT & Connectivity Tips1071
          • Kepware959
          • ThingWorx14954
          • Ask the Experts About the Licensing App12
          • Windchill16103
          • Windchill Customization2659
          • Windchill Navigate354
          • Windchill Tips97
          • Arbortext3756
          • Mathcad14746
          • Mathcad Installation1396
          • Mathcad Tips70
          • Ask Me Anything About Mathcad13
          • PTC Education Forum4112
          • 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
  • 3105 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 & ConditionsAccessibility 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