Skip to content

Add rustls support #145

Closed
Closed

Description

@Geal

let's do it: https://docs.rs/rustls/

first thing should be to replace openssl usage in the command library. AFAIK, it is only used to generate the SHA256 fingerprint of certificates.

There is apparently no method to obtain the fingerprint of a certificate, but it could be added: https://docs.rs/rustls/0.5.8/rustls/struct.Certificate.html

Activity

  1. added this to the milestone on Apr 12, 2017
  2. Geal commented on Oct 18, 2017

    @Geal
    MemberAuthor

    depends on #254

  3. Geal commented on Nov 24, 2017

    @Geal
    MemberAuthor

    ok, now let's do it

  4. Geal commented on Nov 24, 2017

    @Geal
    MemberAuthor
  5. Geal commented on Dec 14, 2017

    @Geal
    MemberAuthor

    Current work is available at https://github.com/sozu-proxy/sozu/tree/rustls
    I'm a bit stuck on how to get the names from a certificate: rustls/rustls#140
    I also see that rustls only supports RSA for now. I'm not too fond of DSA, but elliptic curves might be useful. Relevant issues:

  6. Geal commented on Dec 14, 2017

    @Geal
    MemberAuthor

    next task is figuring out the common name and subject alternative names from a certificate in there, so we can use them to match in the SNI resolver: https://github.com/sozu-proxy/sozu/blob/rustls/lib/src/network/https_rustls/resolver.rs#L35-L39

  7. modified the milestones: , should be in the release on Dec 27, 2017
  8. Geal commented on Jan 3, 2018

    @Geal
    MemberAuthor

    work in progress, waiting on briansmith/webpki#65 to be merged, then I'll replace that code: https://github.com/sozu-proxy/sozu/blob/rustls/lib/src/network/https_rustls/resolver.rs#L35-L44

    Alternative solution if the PR is not merged soon: add a list of names to the ADD_CERTIFICATE message, to tell the workers for which DNS names (wildcard or not) this certificate will be valid. With that, no need to parse the certificate in the worker to get the names, the configuration agent has to take care of it.
    This would also require that the configuration file get a list of names for a certificate, and probably we'll keep a way to get the names from inside the worker if the list is empty. That feature is not complex, but there's a lot of small work here and there.

  9. briansmith commented on Jun 16, 2018

    @briansmith

    I also see that rustls only supports RSA for now. I'm not too fond of DSA, but elliptic curves might be useful.

    Rustls supports ECDSA too. Previously it only supported verification, however in the latest git master it has ECDSA signing support too.

  10. Geal commented on Jul 29, 2021

    @Geal
    MemberAuthor

    let's mark this as done, we can make it work without the webpki PR

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions