public void toJsonFile(Path file) {
        try (OutputStream out = Files.newOutputStream(file)) {
            new TransportSecurityOptionsJsonSerializer().serialize(out, this);
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
Generic TLS configuration for Vespa

@author bjorncs
security-utils/src/main/java/com/yahoo/security/tls/TransportSecurityOptions.java