Skip to content

Add support for using rustls without a default crypto provider or root certs #4033

@CathalMullan

Description

@CathalMullan

I have found these related issues/pull requests

None.

Description

Currently, the feature flags for rustls all include a default crypto provider and a set of root certs.

It would be nice to have the option to completely customize these.
Say, to allow for use of alternative crypto providers like graviola.

Prefered solution

The common way to support this is to add "no-provider" features, and offer a "manual-roots" option.

https://github.com/seanmonstar/reqwest/blob/da0702b762d6ee982ef041661d79df8eeb3aeb41/Cargo.toml#L50-L59

The downside of supporting this is it will result in an explosion of permutations when it comes to testing.

Even more so if you plan on adding more options in the future, like support for rustls-platform-verifier.

Is this a breaking change? Why or why not?

No, since it would only result in adding features.
Existing rustls option should stay the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions