Skip to content

Add skip_ssl_validation flag and refactor TLS config#201

Merged
knutwalker merged 3 commits into
neo4j-labs:mainfrom
madchicken:skip-sslcert-validation
Nov 14, 2024
Merged

Add skip_ssl_validation flag and refactor TLS config#201
knutwalker merged 3 commits into
neo4j-labs:mainfrom
madchicken:skip-sslcert-validation

Conversation

@madchicken
Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor

@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
@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.

3 participants