mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Skip storing trust anchors
This commit is contained in:
parent
16aa183b3f
commit
f505d4ceeb
1 changed files with 1 additions and 2 deletions
|
@ -4837,7 +4837,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
// Load/store intermediate certificates
|
||||
List<X509Certificate> local = new ArrayList<>();
|
||||
|
||||
try {
|
||||
List<EntityCertificate> ecs = db.certificate().getIntermediateCertificate();
|
||||
for (EntityCertificate ec : ecs)
|
||||
|
@ -4846,7 +4845,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
for (X509Certificate c : certs) {
|
||||
boolean[] usage = c.getKeyUsage();
|
||||
boolean root = (usage != null && usage[5]);
|
||||
if (root) {
|
||||
if (root && ks.getCertificateAlias(c) == null) {
|
||||
boolean found = false;
|
||||
String issuer = (c.getIssuerDN() == null ? "" : c.getIssuerDN().getName());
|
||||
EntityCertificate record = EntityCertificate.from(c, true, issuer);
|
||||
|
|
Loading…
Reference in a new issue