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

Android pinning not working #8

@nullfox

Description

@nullfox

As the title says, I'm having trouble getting Android based SSL pinning to be enforced.

I followed the instructions to manually link and the app compiles correctly, however, no pinning seems to get enforced even when I use pins for other websites and my requests load just as they did before.

Is there a way to debug why this wouldn't be working?

My generated pinner java class using reddit's SSL hash (Please note, mydomain.com is just for the purposes of this paste)

package com.criticalblue.reactnative;

import okhttp3.CertificatePinner;

public class GeneratedCertificatePinner {
    public static CertificatePinner instance() {
        CertificatePinner.Builder builder = new CertificatePinner.Builder();

        builder.add("*.mydomain.com", "sha256/ekcBV69V+nWj2avgL3Ko6YUQ2OTGIWWcTMs14g7JsMc=");
        builder.add("*.mydomain.com", "sha256/5kJvNEMw0KjrCAu7eXY5HZdvyCS13BbA0VJG1RSP91w=");

        return builder.build();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions