37                 if (StringHelper.isEmpty(filePath)) {
    38                         log.error(
"X509Certificate file path is empty");
    45                         is = FileUtils.openInputStream(
new File(filePath));
    46                 } 
catch (IOException ex) {
    47                         log.error(
"Failed to read X.509 certificates from file: '" + filePath + 
"'", ex);
    51                 List<X509Certificate> certificates = null;
    53                         CertificateFactory cf = CertificateFactory.getInstance(
"X.509");
    54                         certificates = (List<X509Certificate>) cf.generateCertificates(is);
    55                 } 
catch (CertificateException ex) {
    56                         log.error(
"Failed to parse X.509 certificates from file: '" + filePath + 
"'", ex);
    58                         IOUtils.closeQuietly(is);
 static final Logger log
Definition: CertUtil.java:31