Skip to content
Snippets Groups Projects
Commit a5fe4136 authored by Rob Adams's avatar Rob Adams
Browse files

Create parent directories if needed

parent bc5709a4
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,9 @@ public class CryptoUtil {
// store away the keystore
java.io.FileOutputStream fos = null;
File keyStoreFile = new File(keyStorePath);
File parent = keyStoreFile.getParentFile();
if (parent != null)
parent.mkdirs();
try {
fos = new java.io.FileOutputStream(keyStoreFile);
ks.store(fos, password);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment