opendj-server-legacy/src/main/java/org/opends/server/backends/TrustStoreBackend.java
@@ -988,13 +988,9 @@ File tempDir = getFileForPath("config"); File tempFile = File.createTempFile(configuration.getBackendId(), certAlias, tempDir); try try (FileOutputStream outputStream = new FileOutputStream(tempFile.getPath(), false)) { try (FileOutputStream outputStream = new FileOutputStream(tempFile.getPath(), false)) { certBytes.copyTo(outputStream); } certBytes.copyTo(outputStream); certificateManager.addCertificate(certAlias, tempFile); } finally