# New tls error when starting node red

**URL:** <https://discourse.nodered.org/t/new-tls-error-when-starting-node-red/42412>\
**Category:** General\
**Created:** [10 March 2021 13:11 UTC](https://discourse.nodered.org/t/new-tls-error-when-starting-node-red/42412 "2021-03-10T13:11:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfpedno](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jfpedno](https://discourse.nodered.org/u/jfpedno)\
**Post date:** [10 March 2021 13:11 UTC](https://discourse.nodered.org/t/new-tls-error-when-starting-node-red/42412/1 "2021-03-10T13:11:46Z")

</div>

Could I have a tip about how to fix my tl error. My node red was working on https but I get that new error now. It was working before and coming back few weeks after then :  
Error: error:140AB18F:SSL routines:SSL\_CTX\_use\_certificate:ee key too small  
at Object.createSecureContext (\_tls\_common.js:129:17)  
at Server.setSecureContext (\_tls\_wrap.js:1312:27)  
at Server (\_tls\_wrap.js:1176:8)  
at new Server (https.js:64:14)  
at Object.createServer (https.js:88:10)  
at Object. (/usr/lib/node\_modules/node-red/red.js:146:20)  
at Module.\_compile (internal/modules/cjs/loader.js:1147:30)  
at Object.Module.\_extensions..js (internal/modules/cjs/loader.js:1167:10)  
at Module.load (internal/modules/cjs/loader.js:996:32)  
at Function.Module.\_load (internal/modules/cjs/loader.js:896:14) {  
library: 'SSL routines',  
function: 'SSL\_CTX\_use\_certificate',  
reason: 'ee key too small',  
code: 'ERR\_SSL\_EE\_KEY\_TOO\_SMALL'  
}

the set-up is Rasbian on a Pi

Thank You for any help!

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 March 2021 14:00 UTC](https://discourse.nodered.org/t/new-tls-error-when-starting-node-red/42412/2 "2021-03-10T14:00:38Z")

</div>

Is this a self-signed certificate?

The error is quite clear, you have provided a certificate key that is too small, the server has rejected it.

Have a look at how you created the certificate and redo it with a larger key.

---

<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:** [9 May 2021 14:01 UTC](https://discourse.nodered.org/t/new-tls-error-when-starting-node-red/42412/3 "2021-05-09T14:01:02Z")

</div>

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