bc-csharp icon indicating copy to clipboard operation
bc-csharp copied to clipboard

"long form definite-length more than 31 bits" during Pkcs12Store Load

Open ASt1101 opened this issue 3 years ago • 0 comments

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: grafik

Thanks for your help. Regards, Axel

ASt1101 avatar Sep 21 '22 09:09 ASt1101