src/patch/java/net/curisit/securis/LicenseGenerator.java
.. .. @@ -80,7 +80,7 @@ 80 80 byte[] json; 81 81 try { 82 82 json = JsonUtils.toJSON(signedLic, true).getBytes("utf-8"); 83 - Files.write(Paths.get(file.toURI()), json, StandardOpenOption.CREATE);83 + Files.write(Paths.get(file.toURI()), json, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);84 84 } catch (UnsupportedEncodingException e) { 85 85 log.error("Error creating json doc from license: " + license, e); 86 86 throw new SeCurisException("Error creating json doc from license: " + license, e);