Skip to content

Add option to simply enable TLS instead of providing certain config parameters, and also remove hardcoded rejectUnauthorized = false #257

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ThomasShih
Copy link

@ThomasShih ThomasShih commented May 27, 2025

Tests aren't working on my local before my changes and I haven't had a time to troubleshoot. Hopefully what exists in this PR can be a good jumping off point!

const socket = this.params.ssl
? tls.connect(this.params.port, this.params.hostname, {
...this.params.ssl,
rejectUnauthorized: false,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason why this was hardcoded?

ca: await readFile("./tls-gen/basic/result/ca_certificate.pem", "utf8"),
cert: await readFile(`./tls-gen/basic/result/client_${firstNode.host}_certificate.pem`, "utf8"),
key: await readFile(`./tls-gen/basic/result/client_${firstNode.host}_key.pem`, "utf8"),
rejectUnauthorized: true,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To recover previous behaviour, we can remove this!

Comment on lines +767 to +769
enabled: true
endpoint?: { host: string; port: number }
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto formatting I think

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

Successfully merging this pull request may close these issues.

1 participant