# Conflicts: # pom.xml
@@ -66,6 +66,7 @@
</content_rating>
<releases>
+ <release date="2022-12-14" version="1.6.17"/>
<release date="2022-12-06" version="1.6.16"/>
<release date="2022-10-06" version="1.6.15"/>
<release date="2022-08-31" version="1.6.14"/>
@@ -27,6 +27,7 @@
<nonModularGroupIds>com.github.serceman,com.github.jnr,org.ow2.asm,net.java.dev.jna,org.apache.jackrabbit,org.apache.httpcomponents,de.swiesend,org.purejava,com.github.hypfvieh</nonModularGroupIds>
<!-- cryptomator dependencies -->
+ <cryptomator.cryptolib.version>2.1.1</cryptomator.cryptolib.version>
<cryptomator.cryptofs.version>2.5.3</cryptomator.cryptofs.version>
<cryptomator.integrations.version>1.2.0-beta1</cryptomator.integrations.version>
<cryptomator.integrations.win.version>1.1.2</cryptomator.integrations.win.version>
@@ -63,6 +64,12 @@
<dependencies>
<!-- Cryptomator Libs -->
+ <dependency>
+ <!-- needed due to https://github.com/cryptomator/cryptolib/issues/34-->
+ <groupId>org.cryptomator</groupId>
+ <artifactId>cryptolib</artifactId>
+ <version>${cryptomator.cryptolib.version}</version>
+ </dependency>
<dependency>
<groupId>org.cryptomator</groupId>
<artifactId>cryptofs</artifactId>
@@ -76,6 +76,11 @@ public class DeviceKey {
private P384KeyPair createAndStoreNewKeyPair(char[] passphrase, Path p12File) throws IOException {
var keyPair = P384KeyPair.generate();
+ var tmpFile = p12File.resolveSibling(p12File.getFileName().toString() + ".tmp");
+ if(Files.exists(tmpFile)) {
+ LOG.debug("Leftover from devicekey creation detected. Deleting {}", tmpFile);
+ Files.delete(tmpFile);
+ }
LOG.debug("Store new device key to {}", p12File);
keyPair.store(p12File, passphrase);
return keyPair;