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

Support of custom CAs to deal with self-signed certificates #20

Closed
moritz93 opened this issue May 22, 2024 · 3 comments · Fixed by #21
Closed

Support of custom CAs to deal with self-signed certificates #20

moritz93 opened this issue May 22, 2024 · 3 comments · Fixed by #21

Comments

@moritz93
Copy link

If the PG server uses a self-signed certificate, sslmode=require is not supported. It would be nice to have an option to pass a custom root CA (https://docs.rs/openssl/0.9.24/openssl/ssl/struct.SslContextBuilder.html#method.set_ca_file).

exyi added a commit that referenced this issue May 27, 2024
Specifies PEM/DER certificates used to verify server identity.

resolves #20
@exyi
Copy link
Owner

exyi commented May 27, 2024

Hi! I have added the option in #21, could you please verify that it works for you? You can run the development version using the following commands:

git clone https://github.com/exyi/pg2parquet.git
cd pg2parquet/cli
git switch ssl-root-cert
cargo run -- export {your options}

@moritz93
Copy link
Author

Works, thanks a lot!

@exyi exyi closed this as completed in #21 May 28, 2024
@exyi
Copy link
Owner

exyi commented May 28, 2024

Thanks a lot for testing it for me :) I have release it as the 0.1.0 version.

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 a pull request may close this issue.

2 participants