diff --git a/app/src/main/java/eu/faircode/email/Bimi.java b/app/src/main/java/eu/faircode/email/Bimi.java index 41c98c6334..2b598f0a1b 100644 --- a/app/src/main/java/eu/faircode/email/Bimi.java +++ b/app/src/main/java/eu/faircode/email/Bimi.java @@ -189,7 +189,14 @@ public class Bimi { CertificateFactory fact = CertificateFactory.getInstance("X.509"); for (PemObject pem : pems) { ByteArrayInputStream bis = new ByteArrayInputStream(pem.getContent()); - certs.add((X509Certificate) fact.generateCertificate(bis)); + X509Certificate cert = (X509Certificate) fact.generateCertificate(bis); + Log.i("BIMI cert" + + " serial=" + cert.getSerialNumber() + + " issuer=" + cert.getIssuerDN() + + " subject=" + cert.getSubjectDN() + + " not before=" + cert.getNotBefore() + + " not after=" + cert.getNotAfter()); + certs.add(cert); } // Get first certificate