JAVA-086 / Intermediate
Excessive permissions on sensitive files (world-readable key files)
Why is this a problem?
Other local users can read private keys.
How to fix it
java
Files.write(keyPath, bytes, StandardOpenOption.CREATE_NEW);
Files.setPosixFilePermissions(keyPath, PosixFilePermissions.fromString("rw-------"));