bitfireAT/icsx5

Fix code scanning alert - `TrustManager` that accepts all certificates

Closed this issue · 3 comments

@rfc2822 @sunkup can you take a look at this? I think it's a false positive, we are filtering and throwing CertificateException

Yes, it's a false positive, probably caused because our CustomCertManager's checkServerTrusted doesn't throw CertificateException directly, but calls checkCustomTrusted which throws the exception.

However the design of checkServerTrusted and checkCustomTrusted should become improved by bitfireAT/cert4android#12 when we don't need those AIDL callbacks anymore.

Then I think this can be closed 😉