Visitar URL original
[RFC] Add a feature to use Rustls instead of open-ssl · Issue #3839 · RustPython/RustPython · GitHub
Skip to content

[RFC] Add a feature to use Rustls instead of open-ssl #3839

Description

@Keithcat1

Summary

Because Open-SSL is a C library that is hard to build especially on Windows

Detailed Explanation

Building Rustpython with SSL enabled is a pain at least on windows which requires you to manually set up stuff beforehand, VCPKG is apparently the easiest way to get Open-SSL. Rustls, on the other hand, is written entirely in native Rust as far as I know and will compile just fine without you having to do anything. It's also statically linked and apparently might be faster than Open-SSL anyway.

Drawbacks, Rationale, and Alternatives

A possible alternative is the native_tls crate, which abstracts over platform-specific TLS implementations. I believe it works automatically on Windows, but falls back to Open-SSL on some other platforms.

Unresolved Questions

Activity

  1. youknowone commented on Jul 6, 2022

    @youknowone
    Member

    I like to do. I think the only reason we now use openssl is the ssl interface in python is designed as an openssl wrapper

  2. youknowone commented on Jul 16, 2022

    @youknowone
    Member

    maybe this crate will be helpful https://github.com/stepancheg/rust-tls-api

  3. rimi0108 commented on Jul 16, 2022

    @rimi0108
    Contributor

    I want to take on this issue.

  4. fanninpm commented on Jul 16, 2022

    @fanninpm
    Contributor

    I want to take on this issue.

    I wish you luck.

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

    RFCRequest for comments

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions