-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling SSL https support #456
Comments
First let me say, even if you do get the certificates working, Cronicle has several known issues with HTTPS. Many features don't work properly, like the live log system. There are actually a lot of issues with HTTPS that make it undesirable. Please see previous issues on this topic. If you REALLY want to attempt this, then I recommend you follow the instructions in pixl-server-web and use Let's Encrypt and certbot. Instructions here: https://github.com/jhuckaby/pixl-server-web#lets-encrypt-ssl-certificates It looks like you are specify the wrong files for Good luck! |
Better to setup Nginx over the top with free 🍺 SSL via LetsEncrypt and then use proxypass: There is a good write-up here. This approach works well with a single server, except you have to remember to add in the extra config for websockets via socket.io. https://socket.io/docs/v3/reverse-proxy/#nginx
|
If anyones wondering for socket.io
|
Summary
I am not able to enable the https. I am trying to use csr and key certificates and after making the parameter https: true on the /conf/config.json and restarting the controle I am gettting this output error:
Steps to reproduce the problem
Add the key and csr certificates on /conf and enable the item https: true on the config.json
Your Setup
Cronicle version 0.8.62
Operating system and version?
Ubuntu 18-04
Node.js version?
v8.10.0
Cronicle software version?
Are you using a multi-server setup, or just a single server?
Just single server
Are you using the filesystem as back-end storage, or S3/Couchbase?
Filesystem
Can you reproduce the crash consistently?
Yes, everytime I enable the function https = true
Log Excerpts
[1637002200.049][2021-11-15 11:50:00][cronicle-server][19362][WebServer][debug][2][Starting HTTPS (SSL) server on port: 443][]
Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
at Object.createSecureContext (_tls_common.js:88:17)
at Server (_tls_wrap.js:805:25)
at new Server (https.js:54:14)
at Object.createServer (https.js:76:10)
at WebServer.startHTTPS (/opt/cronicle/node_modules/pixl-server-web/lib/https.js:53:33)
at /opt/cronicle/node_modules/pixl-server-web/web_server.js:179:10
at Server. (/opt/cronicle/node_modules/pixl-server-web/lib/http.js:224:4)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:106:13)
at Server.emit (events.js:208:7)
The text was updated successfully, but these errors were encountered: