Мне нужно получить один и тот же сертификат в формате p12 с ключем + в формате cer для прослушивания траффика, пробовал через fiddlercore получается полная хуйня, устанавливал на андроид, в корень, получилась полная залупа, Вот как генерил private void GenerateCertificateButton_Click(object sender, RoutedEventArgs e) { var certProvider = new BCCertMaker.BCCertMaker(); CertMaker.oCertProvider = certProvider; string rootCertificatePath = @"C:\Users\dd\Downloads\123\zxc12.p12"; string cerCertificatePath = @"C:\Users\dd\Downloads\123\zxc13.cer"; string rootCertificatePassword = "asdwd12312e"; if (!File.Exists(rootCertificatePath)) { certProvider.CreateRootCertificate(); certProvider.WriteRootCertificateAndPrivateKeyToPkcs12File(rootCertificatePath, rootCertificatePassword); } if (File.Exists(rootCertificatePath)) { certProvider.ReadRootCertificateAndPrivateKeyFromPkcs12File(rootCertificatePath, rootCertificatePassword); } X509Certificate2 cert = new X509Certificate2(rootCertificatePath, rootCertificatePassword, X509KeyStorageFlags.Exportable); byte[] certData = cert.Export(X509ContentType.Cert); File.WriteAllBytes(cerCertificatePath, certData); if (!CertMaker.rootCertIsTrusted()) { CertMaker.trustRootCert(); } FiddlerApplication.Shutdown(); } CSHARP private void GenerateCertificateButton_Click(object sender, RoutedEventArgs e) { var certProvider = new BCCertMaker.BCCertMaker(); CertMaker.oCertProvider = certProvider; string rootCertificatePath = @"C:\Users\dd\Downloads\123\zxc12.p12"; string cerCertificatePath = @"C:\Users\dd\Downloads\123\zxc13.cer"; string rootCertificatePassword = "asdwd12312e"; if (!File.Exists(rootCertificatePath)) { certProvider.CreateRootCertificate(); certProvider.WriteRootCertificateAndPrivateKeyToPkcs12File(rootCertificatePath, rootCertificatePassword); } if (File.Exists(rootCertificatePath)) { certProvider.ReadRootCertificateAndPrivateKeyFromPkcs12File(rootCertificatePath, rootCertificatePassword); } X509Certificate2 cert = new X509Certificate2(rootCertificatePath, rootCertificatePassword, X509KeyStorageFlags.Exportable); byte[] certData = cert.Export(X509ContentType.Cert); File.WriteAllBytes(cerCertificatePath, certData); if (!CertMaker.rootCertIsTrusted()) { CertMaker.trustRootCert(); } FiddlerApplication.Shutdown(); } вообщем не пойму в чем проблема, всё сертификаты установил и на пк и на андроид, но на мобиле не работает перехват
ИроничныйЧёрт, ну через полноценные софты у меня тоже всё прекрасно работает, тут я решил автоматизировать всё через fiddler core и написать свой функционал, но пока с перехватом какая-то хуйня