# Using wss for node-red-contrib-ocpp

**URL:** <https://discourse.nodered.org/t/using-wss-for-node-red-contrib-ocpp/40431>\
**Category:** General\
**Created:** [5 February 2021 09:16 UTC](https://discourse.nodered.org/t/using-wss-for-node-red-contrib-ocpp/40431 "2021-02-05T09:16:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocpp](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@ocpp](https://discourse.nodered.org/u/ocpp)\
**Post date:** [5 February 2021 09:16 UTC](https://discourse.nodered.org/t/using-wss-for-node-red-contrib-ocpp/40431/1 "2021-02-05T09:16:24Z")

</div>

Hello everyone,  
I have setup a local server in my LAN with the following:  
Apache 2.4.41  
NodeJS 10.19.0  
Node Red 1.2.9  
Generated SSL certificate for localhost with openssl

I installed the Node Red OCPP project from here: [GitHub - Argonne-National-Laboratory/node-red-contrib-ocpp: Open Charge Point Protocol Node-Red Nodes](https://github.com/Argonne-National-Laboratory/node-red-contrib-ocpp)  
Then I modified settings.js to point to my key and certificate files (they were with key and cert extensions, I renamed them to .pem both) and the admin interface of Node Red is working with https (after I accept the exception to load it in browser).  
Now, the OCPP system works when I connect to it using a simulator (the one from here - [GitHub - victormunoz/OCPP-1.6-Chargebox-Simulator: A simple chargepoint simulator, working with OCPP 1.6](https://github.com/victormunoz/OCPP-1.6-Chargebox-Simulator)), but only over WS - it connects on the socket and everything works. When I try secure websocket - WSS in the url- nothing happens. I tried removing the port number, as was suggested in other topics here, but again it doesn't connect.  
I suspect that there is something else that I need to setup on the server in regards to SSL/TLS, so can anyone tell me what I have missed here?  
I have seen in other topics here that there are TLS settings for websockets(from screenshots), but I can't find them in this latest version of Node Red.  
The reason is that I want to try this system out over the Internet and I need secure connection.  
Thanks in advance to everyone! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 April 2021 09:17 UTC](https://discourse.nodered.org/t/using-wss-for-node-red-contrib-ocpp/40431/2 "2021-04-06T09:17:22Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
