Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: NativeAOT support #487

Open
InstinctTheDevil opened this issue Oct 3, 2023 · 0 comments
Open

Feature Request: NativeAOT support #487

InstinctTheDevil opened this issue Oct 3, 2023 · 0 comments

Comments

@InstinctTheDevil
Copy link

Hello! I recently wanted to use the FiddlerCore library which relys on bc-csharp

But I found large issues while attempting to implement this while using NativeAOT in .NET 8.0

Here's my stacktrace:

** LogString: Fiddler ICertificateProvider v5.0.2.0 loaded.
        fiddler.certmaker.bc.Debug:     False
        ObjectID:                       0x3ac326b
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Org.BouncyCastle.Asn1.Pkcs.Pfx..ctor(Asn1Sequence seq) + 0x15
   at Org.BouncyCastle.Pkcs.Pkcs12Store.Load(Stream input, Char[] password) + 0x74
   at BCCertMaker.BCCertMaker.ReadRootCertificateAndPrivateKeyFromStream(Stream pkcs12Stream, String password, String alias) + 0x55
   at BCCertMaker.BCCertMaker.ReadRootCertificateAndPrivateKeyFromPkcs12File(String filename, String password, String alias) + 0x73
   at CaptureTraffic.Program.EnsureRootCertificate() + 0xaa
   at CaptureTraffic.Program.Main() + 0xe
   at Program!<BaseAddress>+0x790638


I'll gladly contribute to adding support if we can find the root cause to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant