# Is it possible to use NodeRED as functioning LAN https server?

**URL:** <https://discourse.nodered.org/t/is-it-possible-to-use-nodered-as-functioning-lan-https-server/8078>\
**Category:** General\
**Created:** [17 February 2019 21:54 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nodered-as-functioning-lan-https-server/8078 "2019-02-17T21:54:27Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [2 March 2019 11:31 UTC](https://discourse.nodered.org/t/is-it-possible-to-use-nodered-as-functioning-lan-https-server/8078/9 "2019-03-02T11:31:36Z")

</div>

Spoke too soon ☹  
Everything worked without https when Scratch 3 running in browser on same machine as NodeRED but when trying to use across a LAN - it wanted webserver to be https again

So I edited my settings .js like this

```auto
...
// The `https` setting requires the `fs` module. Uncomment the following
// to make it available:
var fs = require("fs")
...
    https: {
        key: fs.readFileSync('ca.key'),
        cert: fs.readFileSync('ca.pem')
    },
...
    httpNodeCors: {
        origin: "*",
        methods: "GET,PUT,POST,DELETE"
    },
...

```

(my ssl certs are available here [https://github.com/cymplecy/scratch\_gpio/tree/v8](https://github.com/cymplecy/scratch_gpio/tree/v8) - stick them into /home/pi/.node-red)

---

_[View the full topic](https://discourse.nodered.org/t/is-it-possible-to-use-nodered-as-functioning-lan-https-server/8078)._
