mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Simplified cert debugging
This commit is contained in:
parent
32aa43d5b7
commit
e5751f365f
1 changed files with 2 additions and 4 deletions
|
@ -5613,8 +5613,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
cpv.validate(path.getCertPath(), params);
|
cpv.validate(path.getCertPath(), params);
|
||||||
|
|
||||||
List<X509Certificate> pcerts = new ArrayList<>();
|
List<X509Certificate> pcerts = new ArrayList<>();
|
||||||
pcerts.add(cert);
|
for (Certificate c : path.getCertPath().getCertificates())
|
||||||
for (Certificate c : pcerts)
|
|
||||||
if (c instanceof X509Certificate)
|
if (c instanceof X509Certificate)
|
||||||
pcerts.add((X509Certificate) c);
|
pcerts.add((X509Certificate) c);
|
||||||
if (path instanceof PKIXCertPathValidatorResult) {
|
if (path instanceof PKIXCertPathValidatorResult) {
|
||||||
|
@ -5956,9 +5955,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
boolean selfSigned = cert.getIssuerX500Principal().equals(cert.getSubjectX500Principal());
|
boolean selfSigned = cert.getIssuerX500Principal().equals(cert.getSubjectX500Principal());
|
||||||
EntityCertificate record = EntityCertificate.from(cert, null);
|
EntityCertificate record = EntityCertificate.from(cert, null);
|
||||||
trace.add(record.subject +
|
trace.add(record.subject +
|
||||||
" (" + cert.getIssuerX500Principal() + ")" +
|
" (" + (selfSigned ? "selfSigned" : cert.getIssuerX500Principal()) + ")" +
|
||||||
(keyCertSign ? " (keyCertSign)" : "") +
|
(keyCertSign ? " (keyCertSign)" : "") +
|
||||||
(selfSigned ? " (selfSigned)" : "") +
|
|
||||||
(ks != null && ks.getCertificateAlias(cert) != null ? " (Android)" : ""));
|
(ks != null && ks.getCertificateAlias(cert) != null ? " (Android)" : ""));
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
|
|
Loading…
Reference in a new issue