justcoding121 / titanium-web-proxy

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

Use Custom RootCertificate, DefaultWindows And BouncyCastle has Two behaviors? #965

Open kingcomxu opened 1 year ago

kingcomxu commented 1 year ago

when set CertificateEngine = DefaultWindows, every thing fine, and when set CertificateEngine = BouncyCastle, browser shows ERR_CERT_AUTHORITY_INVALID!!!

In BCCertificateMaker.cs source , var issuerDn = new X509Name(issuerName); I change it to var issuerDn = new X509Name(true, issuerName); Then everything is fine.

ps: my root.pfx is created by openssl, and used in filldercore is worked, so I think maybe it's a bug in BCCertificateMaker