Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bouncy castle to generate certs for TLS. #10

Merged
merged 1 commit into from
Aug 1, 2012
Merged

Commits on Aug 1, 2012

  1. Use bouncy castle to generate certs for TLS.

    Because there are no platform APIs to generate certificates,
    this needs a third party library (bouncy castle) to do the
    heavy lifting.
    
    Each target platform has its own built-in crypto library:
     - The JVM has its own internal crypto library. It uses
       key stores like "JCA".
     - Android has its own internal crypto library that's
       based on bouncy castle. It is repackaged in com.android
       and is not used by this code.
    
    With this change, okhttp brings its own copy of bouncy castle
    for cert generation. Once the certificate is generated we're
    done with bouncy castle, and use the platform libraries for TLS.
    This approach allows us to use one codebase on either platform.
    squarejesse committed Aug 1, 2012
    Configuration menu
    Copy the full SHA
    33a0c62 View commit details
    Browse the repository at this point in the history