justcoding121 / titanium-web-proxy

A cross-platform asynchronous HTTP(S) proxy server in C#.
MIT License
1.93k stars 618 forks source link

How to generate certificate file for android #872

Open thgiang opened 3 years ago

thgiang commented 3 years ago

Hello, I want to capture some https requests from my mobile application (Android) so I need to export Certificate file then import it into my phone.

I tried File.WriteAllBytes("ca.cer", proxyServer.CertificateManager.RootCertificate.Export(System.Security.Cryptography.X509Certificates.X509ContentType.Cert)); then drag and drop the ca.cer file into LDPlayer (Android version 5.1.1), it show Cannot read...

So, my question is how to export a valid certificate?

honfika commented 2 years ago

Did you try another formats, like Pkcs12 or Pfx?