Reputation: 4295
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.
Upvotes: 0
Views: 350
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