Skip to content

TLS support for OkHttp when not running on Android #22

Closed

Description

@ejona86

OkHttp transport current accepts a SSLSocketFactory which when on Android is provided by the OS. For testing when not running on Android we don't have a way to do TLS/ALPN. We need one.

Activity

  1. ejona86 commented on Feb 4, 2015

    @ejona86
    MemberAuthor

    @JakeWharton, what do you suggest on this one? I've not looked into the OkHttp code to see if we can reuse some of the Platform/TLS stuff to work on and off Android. Right now getting TLS on Android for gRPC is more painful than we would like, so leveraging more of OkHttp in general would likely be appreciated.

    @madongfly, have you looked at reusing parts of OkHttp at all?

  2. JakeWharton commented on Feb 4, 2015

    @JakeWharton
    Contributor

    I don't know enough about this mechanism to provide any useful recommendations or guidance. @swankjesse would.

  3. swankjesse commented on Feb 5, 2015

    @swankjesse

    We've got TLS working, including ALPN, and you can see it by running our test suite. You'll need the Jetty-ALPN extension which is configured by Maven.

  4. madongfly commented on Feb 6, 2015

    @madongfly
    Contributor

    @ejona86, no, I haven't. Feel free to assign it to me.

  5. added this to the milestone on Mar 11, 2015
  6. ejona86 commented on Mar 11, 2015

    @ejona86
    MemberAuthor

    Not required for 0.5.0, but would be nice.

  7. ejona86 commented on Mar 24, 2015

    @ejona86
    MemberAuthor

    @madongfly, any updates on using TLS outside of Android with OkHttp?

  8. madongfly commented on Mar 25, 2015

    @madongfly
    Contributor

    I think @zsurocking picked up my cl and worked on it when I was on vacation, rocking, could you comment on it?

  9. added 2 commits that reference this issue on Apr 8, 2015
    04e1073
    c2f0394
  10. madongfly commented on Apr 8, 2015

    @madongfly
    Contributor

    Reopen because after 11d0094 upgraded Netty to 4.1, the Http2 protocol became to "h2" while OkHttp 2.0 still using "h2-16"

  11. added a commit that references this issue on Apr 8, 2015
    c847386
  12. swankjesse commented on Apr 8, 2015

    @swankjesse

    Use OkHttp 2.3? It uses h2.

  13. madongfly commented on Apr 8, 2015

    @madongfly
    Contributor

    @swankjesse yeah, we will upgrade it to 2.3.

  14. added a commit that references this issue on Apr 9, 2015
    9d21463
  15. locked as resolved and limited conversation to collaborators on Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions