SSL error in enterprise 7.17.0

Hello, I use a docker-compose for elastic, enterprise and Kibana. I use letsencrypt for the certificate and I want to use https. I have a several number of errors. I use 7.17.0 version

ent-search_1     | Custom Enterprise Search configuration file detected, not overwriting it (any settings passed via environment will be ignored)
ent-search_1     | Found java executable in PATH
ent-search_1     | Java version detected: 11.0.13 (major version: 11)
ent-search_1     | Enterprise Search is starting...
ent-search_1     | [2022-03-02T14:23:55.979+00:00][8][2000][app-server][INFO]: Enterprise Search version=7.17.1, JRuby version=9.2.13.0, Ruby version=2.5.7, Rails version=5.2.6
ent-search_1     | [2022-03-02T14:24:01.235+00:00][8][2000][app-server][INFO]: Performing pre-flight checks for Elasticsearch running on https://servIp:9200...
ent-search_1     | Unexpected exception while running Enterprise Search:
ent-search_1     | Error: Unsupported or unrecognized SSL message at /usr/share/enterprise-search/lib/war/gems/gems/manticore-0.7.0-java/lib/faraday/adapter/manticore.rb:88:in `block in call'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/manticore-0.7.0-java/lib/manticore/response.rb:79:in `call'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/manticore-0.7.0-java/lib/faraday/adapter/manticore.rb:92:in `call'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/lib/middleware/request_logging_middleware.class:26:in `call'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/faraday-1.8.0/lib/faraday/rack_builder.rb:154:in `build_response'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/faraday-1.8.0/lib/faraday/connection.rb:516:in `run_request'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/faraday-1.8.0/lib/faraday/connection.rb:200:in `get'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch.class:541:in `block in get_raw'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/lib/apm_helpers.class:41:in `es_action_instrument'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch.class:623:in `instrument'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch.class:540:in `get_raw'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:179:in `check_es_connection_with_retries!'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:34:in `check_es_connection!'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:19:in `block in run!'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:71:in `block in tagged'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:28:in `tagged'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:71:in `tagged'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:18:in `run!'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:14:in `run!'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo.class:304:in `configure_elasticsearch!'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo.class:283:in `configure!'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/config/application.class:20:in `<main>'
ent-search_1     | 	org/jruby/RubyKernel.java:1016:in `load'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `block in load'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/config/application.rb:1:in `<main>'
ent-search_1     | 	org/jruby/RubyKernel.java:974:in `require'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/gems/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli/command.class:36:in `initialize'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli/command.class:10:in `run_and_exit'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli.class:143:in `run_supported_command'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli.class:125:in `run_command'
ent-search_1     | 	/usr/share/enterprise-search/lib/war/shared_togo/lib/shared_togo/cli.class:112:in `run!'
ent-search_1     | 	bin/enterprise-search-internal:15:in `<main>'
ela_ent-search_1 exited with code 1

I don't find anything about it. Can you help me? here my docker-compose.yml

version: '2'
networks:
 elastic:
   driver: bridge

volumes:
 elasticsearch:
   driver: local

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
    restart: unless-stopped
    environment:
      - "discovery.type=single-node"
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - "xpack.security.enabled=true"
      - "xpack.security.authc.api_key.enabled=true"
      - "xpack.security.audit.enabled:true"
      - "xpack.security.enabled:true"
      - "xpack.security.http.ssl.enabled:true"
      - "xpack.security.http.ssl.verification_mode:certificate"
      - "xpack.security.http.ssl.key:/usr/share/elasticsearch/config/test/privkey1.pem"
      - "xpack.security.http.ssl.certificate:/usr/share/elasticsearch/config/test/cert1.pem"  
      - "ELASTIC_PASSWORD=${ELASTIC_PASSWORD}"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - /etc/elasticsearch/config/certs/dns/:/usr/share/elasticsearch/config/test
      - elasticsearch:/usr/share/elasticsearch/data
    ports:
      - ${ES_PORT}:${ES_PORT}
    networks:
      - elastic

  ent-search:
    image: docker.elastic.co/enterprise-search/enterprise-search:${STACK_VERSION}
    restart: unless-stopped
    depends_on:
      - "elasticsearch"
    environment:
      - "JAVA_OPTS=-Xms512m -Xmx512m"
      - "ENT_SEARCH_DEFAULT_PASSWORD=${ENTERPRISE_PASSWORD}"
      - "elasticsearch.username=elastic"
      - "elasticsearch.password=${ENTERPRISE_PASSWORD}"
      - "elasticsearch.host=https://${SERVER_HOST}:${ES_PORT}"
      - "allow_es_settings_modification=true"
      - "secret_management.encryption_keys=${SECRET_MANAGEMENT_ENCRYPTION}"
      - "elasticsearch.startup_retry.interval=15"
      - "ent_search.external_url=https://${SERVER_HOST}:${ENTERPRISE_PORT}"
      - "kibana.external_url=https://${SERVER_HOST}:${KIBANA_PORT}"
        #- "elasticsearch.ssl.enabled:true"
        #- "elasticsearch.ssl.certificate:/usr/share/enterprise-search/config/test/fullchain1.pem"
        #- "elasticsearch.ssl.key:/usr/share/enterprise-search/config/test/privkey1.pem"
    ports:
      - ${ENTERPRISE_PORT}:${ENTERPRISE_PORT}
    volumes:
      - /etc/elasticsearch/config/certs/dns/:/usr/share/enterprise-search/config/test    
    networks:
      - elastic

  kibana:
    image: docker.elastic.co/kibana/kibana:${STACK_VERSION}
    restart: unless-stopped
    depends_on:
      - "elasticsearch"
      - "ent-search"
    ports:
      - ${KIBANA_PORT}:${KIBANA_PORT}
    environment:
      ELASTICSEARCH_HOSTS: https://elasticsearch:${ES_PORT}
      ENTERPRISESEARCH_HOST: https://ent-search:${ENTERPRISE_PORT}
      ELASTICSEARCH_USERNAME: elastic
      server.host: ${SERVER_HOST}
      server.name: dns
      #elasticsearch_url: "https://dns:9200"
      ELASTICSEARCH_PASSWORD: ${KIBANA_PASSWORD}
      server.ssl.enabled: "true"
      server.ssl.certificate: /usr/share/kibana/config/test/fullchain1.pem
      server.ssl.key: /usr/share/kibana/config/test/privkey1.pem
      enterpriseSearch.ssl.certificateAuthorities: /usr/share/kibana/config/test/fullchain1.pem
      enterpriseSearch.ssl.verificationMode: certificate
    networks:
      - elastic

Thanks!