Optional<String> getCaCertificates(ConnectorConfig.Ssl sslConfig) {
        var sb = new StringBuilder();
        if (sslConfig.caCertificateFile().isBlank() && sslConfig.caCertificate().isBlank()) return Optional.empty();
        if (!sslConfig.caCertificate().isBlank()) {
            sb.append(sslConfig.caCertificate());
        }
        if (!sslConfig.caCertificateFile().isBlank()) {
            if (sb.length() > 0) sb.append('\n');
            sb.append(readToString(sslConfig.caCertificateFile()));
        }
        return Optional.of(sb.toString());
    }
An implementation of {@link SslProvider} that uses the {@link ConnectorConfig} to configure SSL.

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/ssl/impl/ConfiguredSslContextFactoryProvider.java