Process p1 = Runtime.getRuntime().exec(call, null, new File("keys/unassured.ca"));
int waitFor = p1.waitFor();
- f.delete();
+ if ( !f.delete()) {
+ System.err.println("Could not delete SAN-File " + f.getAbsolutePath());
+ }
if (waitFor == 0) {
try (InputStream is = new FileInputStream(crt)) {
CertificateFactory cf = CertificateFactory.getInstance("X.509");
public static void main(String[] args) throws IOException, ParserConfigurationException, TransformerException {
System.out.println("downloading locales ...");
File locale = new File("locale");
- locale.mkdir();
+ if ( !locale.mkdir()) {
+ throw new IOException("Could not create locales directory.");
+ }
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();