Skip to content

Add skip_ssl_validation flag and refactor TLS config #201

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

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

madchicken
Copy link
Contributor

This PR adds the possibility of skipping client-side TLS certificate validation.
In the previous version, a user could pass a CA certificate to make an SSC connection work with a self-signed certificate. With this modification, a user can choose to skip the validation completely and avoid passing a valid certificate.

Example of usage:

let config = ConfigBuilder::default()
            .uri("127.0.0.1:7687")
            .user("some_user")
            .password("some_password")
            .skip_ssl_validation()
            .build()
            .unwrap();

Copy link
Collaborator

@knutwalker knutwalker left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

@knutwalker knutwalker merged commit 0b175da into neo4j-labs:main Nov 14, 2024
11 checks passed
@madchicken madchicken deleted the skip-sslcert-validation branch November 18, 2024 16:03
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.

2 participants