final int maxChunkSize = configuration.getRestMaxChunkSize();
final File tlsCertFile;
final File tlsKeyFile;
if (configuration.isRestEnableTls() && (configuration.getRestTlsCertFile() == null || configuration.getRestTlsKeyFile() == null)) {
final SelfSignedCertificate ssc = new SelfSignedCertificate(configuration.getRestListenUri().getHost());
tlsCertFile = ssc.certificate();
tlsKeyFile = ssc.privateKey();
LOG.info("rest_tls_cert_file or rest_tls_key_file is empty. Using self-signed certificates instead.");
LOG.debug("rest_tls_cert_file = {}", tlsCertFile);
LOG.debug("rest_tls_key_file = {}", tlsKeyFile);
} else {