Skip to content

Is there a way to use tokio + rustls +webpki-roots ? #1155

@axelfaure

Description

@axelfaure

Hi!

I am looking for a way to use this crate with tokio and rustls (so basically tokio-rustls-comp feature) but I would like to use webpki-roots instead of rustls-native-certs. I want this specific setup because that is what I use in every other tls setup in my project and because my goal is to run my service in a very minimal environment (ideally without openssl and without local certificates).

redis-rs seem to support using webpki-roots only in a sync context but not with tokio. I do not think there is any specific reason behind that, it only seems to be an unwanted consequence of the way features are split and combined.

Could anyone please confirm that it is indeed not currently possible? And if so, do you think we could rework current features to make it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions