When extracting signature from a pdf file, it gives the following error on Linux only, while on windows it works fine with exact same version of JDK, aspose jar and pdf file.
Caused by: class com.aspose.pdf.internal.ms.System.lh: invalid PFX version
com.aspose.pdf.internal.l75p.lv.lj(Unknown Source)
com.aspose.pdf.internal.l75p.lv.(Unknown Source)
com.aspose.pdf.internal.l68j.ly.lf(Unknown Source)
com.aspose.pdf.internal.l68j.ly.lI(Unknown Source)
com.aspose.pdf.internal.l68j.ly.lI(Unknown Source)
com.aspose.pdf.internal.l68j.l0if.lI(Unknown Source)
com.aspose.pdf.SignatureField.lI(Unknown Source)
com.aspose.pdf.SignatureField.l1l(Unknown Source)
com.aspose.pdf.SignatureField.extractCertificate(Unknown Source)
com.aspose.pdf.facades.PdfFileSignature.lf(Unknown Source)
com.aspose.pdf.facades.PdfFileSignature.extractCertificate(Unknown Source)
All version from 22 up to the latest 23.1 have the same issue. But old version 20.8 works fine.