Skip to main content
Arena Solutions Logo
      • Community
      • Recently active topics
      • Unanswered questions
      • CAD
      • Creo+ and Creo Parametric
          • 3D Part & Assembly Design21752
          • System Administration5010
          • Analysis2155
          • Customization3223
          • Manufacturing (CAM)1118
          • Creo Parametric Tips455
      • Creo Elements Direct
          • Drafting285
          • Modeling300
          • Model Manager19
          • System Administration84
      • Other Creo Products (View/Sketch/Illustrate/Layout/ Schematics and Creo Direct)
          • Other Creo Products (View/Sketch/Illustrate/Layout/ Schematics and Creo Direct)1198
      • Mathcad
          • Mathcad14818
          • Mathcad Installation1448
          • Mathcad Tips71
          • Ask Me Anything About Mathcad11
      • PLM
      • Windchill
          • Windchill16296
          • Windchill Customization2713
          • Windchill Navigate365
          • Windchill Tips98
      • ALM
      • Codebeamer
          • Codebeamer447
          • Codebeamer Tips29
      • Systems/Software Engineering
          • Systems/Software Engineering2226
          • Systems/Software Engineering Tips31
      • Pure Variants
          • Pure Variants4
      • SLM (Service)
      • Arbortext
          • Arbortext3677
          • Arbortext Tips94
      • ServiceMax0
      • Servigistics0
      • IoT & Connectivity
      • ThingWorx
          • ThingWorx Developers14999
          • Mfg Solutions & Apps569
          • Ask the Experts About the Licensing App12
      • Kepware
          • Kepware996
      • IoT & Connectivity Tips1074
      • Augmented Reality
      • Vuforia Studio3042
      • Vuforia Studio Tech Tips99
      • PTC Education
      • PTC Education Forum4144
      • PTC Working Groups (Info)
      • PTC "Working Group" Info8
      • PTC Community Information Center
      • PTC Community Announcements78
      • PTC Community Feedback296
      • Welcome & How-To's39
      • Customer Success
      • PTC eSupport Help Discussions468
      • PTC eSupport Help Ideas62
      • PTC University Training344
      • PTC University LEARN Questions156
      • Expert Session Recording Library1
      • Networking and More
      • PTC/USER
          • PTC/ USER Community Networking807
      • PTCooler "OffTopic"719
      • Archive Read Only
      • Creo (Previous to May 2018)
          • Creo Modeling Questions5673
      • Integrity Lifecycle Manager New Web UI
          • Integrity Lifecycle Manager Discussions17
          • Integrity Lifecycle Manager Blog5
          • Integrity Lifecycle Manager Ideas3
      • B&WSoftware - The Creo/Toolkit Experts
          • Discussions46
          • Blog12
      • Model Based Enterprise
          • Model Based Enterprise (MBE) Blog2
          • Discussions12
      • Community Content Groups
          • Data Exchange / Interoperability
              • Discussions31
          • PTC Medical Device Customer Community
              • Discussions3
              • Blog18
      • Innovation Lab
          • Proactive Monitoring & Support2
      • IoT Archive
          • 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
  • 3 replies
  • 3124 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.

3 replies

  • Newest first
  • Most Liked
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|8 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

No account yet? Create an account

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