Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Android Telemetry DigiCert Certificate Pinning #3888

Closed

Description

@bleege

The initial Android Telemetry build out was able to integrate Certificate Pinning for Staging and Production as they both use Geotrust. However to provide for certificate revocation and fallback it also needs to add support for Prod's Digicert certificate.

Implementing this will require coordination with @ianshward. Will look to schedule ASAP.

/cc @camilleanne @mick

Activity

  1. added
    Android
    telemetry
    on Feb 10, 2016
  2. self-assigned this
    on Feb 10, 2016
  3. added this to the android-v4.0.0 milestone on Feb 10, 2016
  4. bleege commented on Feb 25, 2016

    @bleege
    ContributorAuthor

    OkHttp is in the process of moving it's pinning support from SHA1 to SHA256. The current version 3.1.2, which Mapbox is using, makes use of SHA1, while the next version 3.2.0 will support both SHA1 and SHA256. It seems wise to generate both SHA1 and SHA256 pins when the DigiCert certificate is setup though to provide flexibility in the future.

    In the interim, I used the latest 3.2.0-SNAPSHOT to generate SHA256 pins for Staging and Prod for Geotrust certificates and put them in the development branch. Sadly, when I reverted to 3.1.2 the new SHA256 pins are not supported though. 😐

    02-25 17:37:46.588 26861-27052/com.mapbox.mapboxsdk.testapp E/MapboxEventManager: FlushTheEventsTask borked: java.lang.IllegalArgumentException: pins must start with 'sha1/': sha256/kR9ysyN/lzBl/ecearDERV7qO7xqSN4jt6XuQjIVL0I=
  5. bleege commented on Feb 26, 2016

    @bleege
    ContributorAuthor

    Successfully generated and tested SHA1 and SHA256 pins for the DigiCert with @ianshward tonight. The next step will be to organize these in the dev branch so that they include the SHA1 for Staging, Geotrust, and Digicert. This will enable all 3 options for submitting Telemetry to Mapbox. Will comment out the SHA256 values as they won't be needed until the project upgrades to OkHttp 3.2.0 at the earliest.

  6. bleege commented on Feb 26, 2016

    @bleege
    ContributorAuthor

    I organized the pins to only use SHA1 for Staging, Prod Geotrust, and Prod Digicert for now as Mapbox is using OkHttp 3.1.2. I retested to make sure that Staging and Prod still worked (Geotrust) and they did.

    I put the SHA256 pins into comments in the source code so that the project can switch to those when OkHttp 3.2.0 is released as SHA256 is the new preference for OkHttp going forward.

  7. added a commit that references this issue on Feb 26, 2016
  8. bleege commented on Feb 26, 2016

    @bleege
    ContributorAuthor

    Rebased, Squashed, and Merged. ☑️

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

Metadata

Metadata

Assignees

Labels

Androidtelemetry

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions