Add Certs, Docker Build
[aaf/authz.git] / cadi / aaf / src / main / java / org / onap / aaf / cadi / cm / Factory.java
index 8933963..e969fab 100644 (file)
@@ -229,13 +229,13 @@ public class Factory {
        public static Collection<? extends Certificate> toX509Certificate(Trans trans, File file) throws CertificateException, FileNotFoundException {
                FileInputStream fis = new FileInputStream(file);
                try {
-                       return toX509Certificate(fis);
-               } finally {
                        try {
-                               fis.close();
-                       } catch (IOException e) {
-                               throw new CertificateException(e);
+                               return toX509Certificate(fis);
+                       } finally {
+                                       fis.close();
                        }
+               } catch (IOException e) {
+                       throw new CertificateException(e);
                }
        }