bc-csharp
bc-csharp copied to clipboard
"long form definite-length more than 31 bits" during Pkcs12Store Load
Hi Team Bouncy Castle,
I have an issue while trying to load a P12 keystore.
The Load method raises an exception "long form definite-length more than 31 bits". Could you give any hints why this is happening and how to get rid of it?
Pkcs12Store p12 = new Pkcs12Store(); using (var stream = File.OpenRead(filename)) p12.Load(stream, pin.ToArray()); //this is where the exception is raised
This is the content of the keystore shown by KeyStore Explorer:

Thanks for your help. Regards, Axel