diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index f7fc29d994..ed2d98a3b4 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -10187,6 +10187,7 @@ public class FragmentMessages extends FragmentBase // https://datatracker.ietf.org/doc/html/rfc3850#section-4.4.2 for (X509Certificate c : certs) { + // https://datatracker.ietf.org/doc/html/rfc3280#section-4.2.1.3 boolean[] usage = c.getKeyUsage(); boolean keyCertSign = (usage != null && usage.length > 5 && usage[5]); boolean selfSigned = c.getIssuerX500Principal().equals(c.getSubjectX500Principal());