Skip to content

Fix for SSL connections: select aws_lc_rs as the default Rustls provider#41

Open
Avnerus wants to merge 1 commit into
fcoury:masterfrom
Avnerus:fix-rustls-provider
Open

Fix for SSL connections: select aws_lc_rs as the default Rustls provider#41
Avnerus wants to merge 1 commit into
fcoury:masterfrom
Avnerus:fix-rustls-provider

Conversation

@Avnerus
Copy link
Copy Markdown

@Avnerus Avnerus commented May 29, 2026

Hi!
I tried to connect to a postgresql DB that requires SSL connections, the connection failed with this error message:

no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point

The rustls docs state:

applications should call CryptoProvider::install_default() early in their fn main(). 

So I added that in main, installing aws_lc_rs which seemed like a good choice. The SSL connection then worked.
I run formats and tests.
I am human.
Thank you!

/Avner

Copy link
Copy Markdown

@pergatore pergatore left a comment

Choose a reason for hiding this comment

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

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