mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 18:11:03 +01:00
Small improvements
This commit is contained in:
@@ -1033,7 +1033,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
// throws DecoderException extends IllegalStateException
|
||||
PemObject pem = new PemReader(new InputStreamReader(is)).readPemObject();
|
||||
if (pem == null)
|
||||
throw new IllegalStateException();
|
||||
throw new IllegalStateException("Invalid key file");
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(pem.getContent());
|
||||
cert = (X509Certificate) fact.generateCertificate(bis);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user