Skip to content

Allow passing a custom rustls ClientConfig #211

Description

@praveenperera

electrum-client currently creates its own rustls::ClientConfig for ssl:// connections using webpki_roots. The public Config API doesn’t seem to let callers provide their own ClientConfig or certificate verifier.

This is a problem for mobile apps that want to use native OS certificate validation, for example via rustls-platform-verifier on Android/iOS. In Cove, this would help fix UnknownIssuer errors for certs trusted by the platform store. Related issue in cove: bitcoinppl/cove#776

Activity

  1. oleonardolima commented on Jun 18, 2026

    @oleonardolima
    Contributor

    related to #137.

  2. oleonardolima commented on Jun 18, 2026

    @oleonardolima
    Contributor

    Does the issue still happens with the validate_domain option as false ? (though, it'd be only a workaround)

    I agree, in order to properly fix this, we'd need to expose the rustls::ClientConfig API as mentioned #137.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionThere's still a discussion ongoingnew featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions