Skip to content
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

Request HTTPS #81

Closed
rafaelferreiras opened this issue May 15, 2024 · 2 comments
Closed

Request HTTPS #81

rafaelferreiras opened this issue May 15, 2024 · 2 comments

Comments

@rafaelferreiras
Copy link

rafaelferreiras commented May 15, 2024

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
Copy link
Owner

rajnandan1 commented May 16, 2024

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
Copy link
Owner

Closing the issue as there has been not update from OP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants