Skip to main content
Arena Solutions Logo
      • Community
      • Recently active topics
      • Unanswered questions
      • CAD
          • 3D Part & Assembly Design21634
          • Analysis2152
          • Customization3187
          • Manufacturing (CAM)1112
          • System Administration4995
          • Creo Parametric Tips443
          • Drafting283
          • Modeling296
          • Model Manager19
          • System Administration81
          • Other Creo Products (View/Sketch/Illustrate/Layout/ Schematics and Creo Direct)1181
          • Mathcad14770
          • Mathcad Installation1416
          • Mathcad Tips70
          • Ask Me Anything About Mathcad11
      • PLM
          • Windchill16140
          • Windchill Customization2673
          • Windchill Navigate359
          • Windchill Tips98
      • ALM
          • Codebeamer392
          • Codebeamer Tips29
          • Systems/Software Engineering2221
          • Systems/Software Engineering Tips31
          • Pure Variants0
      • SLM (Service)
          • Arbortext3668
          • Arbortext Tips94
      • IoT & Connectivity
      • Mfg Solutions & Apps569
      • IoT & Connectivity Tips1071
          • Kepware968
          • ThingWorx Developers14969
      • Ask the Experts About the Licensing App12
      • Augmented Reality
      • Vuforia Studio3038
      • Vuforia Studio Tech Tips99
      • PTC Education
      • PTC Education Forum4118
      • PTC Working Groups (Info)
      • PTC "Working Group" Info8
      • PTC Community Information Center
      • PTC Community Announcements78
      • PTC Community Feedback289
      • Welcome & How-To's40
      • Customer Success
      • PTC eSupport Help Discussions458
      • PTC eSupport Help Ideas62
      • PTC University Training342
      • PTC University LEARN Questions124
      • Expert Session Recording Library1
      • Networking and More
          • PTC/ USER Community Networking802
      • PTCooler "OffTopic"706
      • Archive Read Only
          • Creo Modeling Questions5673
          • Integrity Lifecycle Manager Discussions17
          • Integrity Lifecycle Manager Blog5
          • Integrity Lifecycle Manager Ideas3
          • Discussions46
          • Blog12
          • Model Based Enterprise (MBE) Blog2
          • Discussions12
          • Data Exchange / Interoperability31
          • PTC Medical Device Customer Community21
          • Proactive Monitoring & Support2
          • IoT Tech Tips0
          • Expert Sessions Library21
          • Ask Navigate Emily Anything6
      • Community Archives
      • Vuforia Chalk237
  • Events
  • Groups
  • Community Resources
Arena Solutions Logo
  • Create topic
  • Login
  • Home
  • Community
  • IoT & Connectivity
  • ThingWorx
  • ThingWorx Developers
  • Error opening non-TLS socket[localhost:8001]
G
gquiroga1-Visitor
1-Visitor
Forum|Forum|8 years ago
May 31, 2018
Question

Error opening non-TLS socket[localhost:8001]

  • Forum|Forum|8 years ago
    May 31, 2018
  • 1 reply
  • 3109 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|8 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|8 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