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

fix: allow self-signed certificates and to skip during setup #877

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

im-adithya
Copy link
Member

@im-adithya im-adithya commented Dec 11, 2024

Fixes #405

Description

EDIT: We decided that it's good to always verify if a certificate is passed by the user. If users raise concerns about using their own self-signed certificate (as it fails the verification), we'll think of adding a checkbox saying "I'm using a self signed certificate" which when checked can skip the cert verification process.

As we anyways ask the user to provide the certificate, it doesn't make any sense to verify the server certificate and host name, the same is also true for the case when the TLS certificate is not provided (as the user agrees to the risk it poses). So this adds InsecureSkipVerify: true in both cases while generating transport credentials.

(And yes, this PR also adds the possibility to continue without adding a TLS certificate)

Screenshot

@im-adithya im-adithya requested a review from rolznz December 11, 2024 14:03
Copy link
Contributor

@rolznz rolznz left a comment

Choose a reason for hiding this comment

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

utACK

@rolznz
Copy link
Contributor

rolznz commented Dec 16, 2024

@im-adithya nice improvements!

@rolznz rolznz merged commit 1fd317e into master Dec 16, 2024
9 checks passed
@rolznz rolznz deleted the task-lnd-cert branch December 16, 2024 05:29
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.

Bug: Self-signed LND certificates error in Windows Desktop
2 participants