class Crypto {

    public static X509Certificate loadX509Certificate(File certFile) throws CryptoException  {
        try (FileReader fileReader = new FileReader(certFile)) {
            return loadX509Certificate(fileReader);
        } catch (FileNotFoundException e) {
            LOG.error("loadX509Certificate: Caught FileNotFoundException while attempting to load certificate for file: "
                    + certFile.getAbsolutePath());
            throw new CryptoException(e);
            ///CLOVER:OFF
        } catch (IOException e) {
            LOG.error("loadX509Certificate: Caught IOException while attempting to load certificate for file: "
                    + certFile.getAbsolutePath());
            throw new CryptoException(e);
        }
        ///CLOVER:ON
    }

}