Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error using node  RSS feed

Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys,

I have a Java Script program as bellow:

When I run the program using node, with the command = node PeerSer.js, occurs the error message:

      c.context.setKey(options.key, options.passphrase);

Error: error:0906D066:PEM routines:PEM_read_bio:bad end line
    at Object.createSecureContext (_tls_common.js:104:17)
    at Server (_tls_wrap.js:803:25)
    at new Server (https.js:54:14)
    at Object.createServer (https.js:76:10)
    at PeerServer (C:\Conciliar\node_modules\peer\lib\index.js:76:20)
    at Object.<anonymous> (C:\Conciliar\PeerServer.js:4:14)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)

What is wrong?



It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!