rajnandan1 / kener

Kener is a Modern Self hosted Status Page, batteries included
https://kener.ing/
MIT License
2.2k stars 83 forks source link

Request HTTPS #81

Closed rafaelferreiras closed 1 month ago

rafaelferreiras commented 1 month ago

Describe the bug Hello, first I would like to thank you for the excellent work. This application is wonderful.

We are experiencing the error: "self-signed certificate in certificate chain". Can you give us a tip on how to fix it? We want to apply the configuration:

rejectUnauthorized: false

rajnandan1 commented 1 month ago

So you can add your self signed ca You can try this, not sure if it will work

https://github.com/rajnandan1/kener/blob/main/scripts/cron-minute.js#L167

const agent = new https.Agent({
  ca: fs.readFileSync('path/to/self-signed-certificate.pem')
});
const options = {
  method: method,
  headers: headers,
  httpsAgent: agent,
  timeout: timeout,
  transformResponse: (r) => r
};
rajnandan1 commented 1 month ago

Closing the issue as there has been not update from OP