Currently we fail on java.lang.ClassCastException: org.bouncycastle.asn1.ASN1Integer incompatible with org.bouncycastle.asn1.DLSequence when a certificate does not contain the PSD2 sequence as the first one.
We should be more robust and allow processing of similar sequences like:
Currently we fail on
java.lang.ClassCastException: org.bouncycastle.asn1.ASN1Integer incompatible with org.bouncycastle.asn1.DLSequence
when a certificate does not contain the PSD2 sequence as the first one.We should be more robust and allow processing of similar sequences like:
The cause lies at https://github.com/wultra/powerauth-webflow/blob/develop/powerauth-tpp-engine-model/src/main/java/io/getlime/security/powerauth/app/tppengine/model/certificate/ICACertificateParser.java#L106
Unfortunately the root exception is swallowed so I tried to provide as much as possible notes here.