public String toJson() {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        new TransportSecurityOptionsJsonSerializer().serialize(out, this);
        return new String(out.toByteArray(), StandardCharsets.UTF_8);
    }
Generic TLS configuration for Vespa

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