Skip to content

with_extra_roots extension #202

@conradludgate

Description

@conradludgate

Currently to use extra roots I need to use the following setup:

builder.dangerous()
    .with_custom_certificate_verifier(Arc::new(Verifier::new_with_extra_roots(extra_roots)?))

There exists the ext trait which could be extended to support:

builder.with_platform_verifier_and_extra_roots(extra_roots)?

This avoids needing to justify the use of dangerous when setting up TLS. This mirrors the non-dangerous with_root_certificates method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-AppleWork related to the Apple (macOS, iOS) verifier implementationO-UNIXWork related to the certificate fetching on UNIX platformsO-WindowsWork related to the Windows verifier implementationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions