aceminer
aceminer

Reputation: 4295

Fiddlercore certificate bypass

How do i obtain the fiddler core certificate?

I have tried using Fiddler4 certificate and exporting it to desktop and installing it into the android emulator.

But I always end up with this certificate error. I am using fiddler core with android emulator to stimulate my app testing. I am just doing a small demo to see if it works. However, apparently, the certificate exported from fiddler does not seem to be valid.

enter code here

enter image description here

Upvotes: 0

Views: 350

Answers (1)

EricLaw
EricLaw

Reputation: 57085

This will give you the bytes:

    internal static byte[] getRootCertBytes()
    {
        X509Certificate2 oRoot = Fiddler.CertMaker.GetRootCertificate();
        if (null == oRoot)
        {
            return null;
        }
        return oRoot.Export(X509ContentType.Cert);
    }

You can store them to disk using File.WriteAllBytes().

Upvotes: 1

Related Questions