Skip to content

[bitreq] Allow adding custom root certificates #515

@luisschwab

Description

@luisschwab

Would be nice to be able to add custom root certificates to the client.

For example, to fetch invoices from LND, I need to add its root certificate to the client. For example, reqwest does it like this:

let cert: Vec<u8> = fs::read(&self.tls_cert_path)?;
let cert: Certificate = Certificate::from_pem(&cert)?;
let client: Client = Client::builder().add_root_certificate(cert).build()?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions