BIMI: log certificates

pull/200/head
M66B 3 years ago
parent bc3a9a9869
commit a2048ecde5

@ -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

Loading…
Cancel
Save