# Error: fail to enroll: fail to execute request to fleet-server: x509:

**URL:** <https://discuss.elastic.co/t/error-fail-to-enroll-fail-to-execute-request-to-fleet-server-x509/361392>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [June 13, 2024, 11:04am UTC](https://discuss.elastic.co/t/error-fail-to-enroll-fail-to-execute-request-to-fleet-server-x509/361392 "2024-06-13T11:04:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 13, 2024, 11:04am UTC](https://discuss.elastic.co/t/error-fail-to-enroll-fail-to-execute-request-to-fleet-server-x509/361392/1 "2024-06-13T11:04:41Z")

</div>

Dear Members,

I have setup ECE for testing environment on 3 machines in different zone  
with IP as below

1XX.XXX.XXX.244, 1XX.XXX.XXX.245, 1XX.XXX.XXX.246

after setting up ECE i tried to integrate an elastic agent and used the certificate and downloaded from the ECE console and deployed the same certificate in fleet setting also.

I am facing the error can someone please guide me

enrollment attempt failed, retrying for 10m0s, every 1m0s enrolling to URL: [https://2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io:9243/","ecs.version":"1.6.0](https://2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io:9243/%22,%22ecs.version%22:%221.6.0)"}  
Error: fail to enroll: fail to execute request to fleet-server: x509: certificate is valid for 1XX.XXX.XXX.244, 1XX.XXX.XXX.245, \*[1XX.XXX.XXX.244.ip.es.io](http://1XX.XXX.XXX.244.ip.es.io), not [2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io](http://2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io)

Best Regards,  
Shrikant

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/435a70759d91e90bc1807d4e428dbd7db8584f2d.png)

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [June 13, 2024, 11:08am UTC](https://discuss.elastic.co/t/error-fail-to-enroll-fail-to-execute-request-to-fleet-server-x509/361392/2 "2024-06-13T11:08:31Z")

</div>

> [@shrikantgulia](#):
>
> Dear Members,
> 
> I have setup ECE for testing environment on 3 machines in different zone  
> with IP as below
> 
> 1XX.XXX.XXX.244, 1XX.XXX.XXX.245, 1XX.XXX.XXX.246
> 
> after setting up ECE i tried to integrate an elastic agent and used the certificate and downloaded from the ECE console and deployed the same certificate in fleet setting also.
> 
> I am facing the error can someone please guide me
> 
> enrollment attempt failed, retrying for 10m0s, every 1m0s enrolling to URL: [https://2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io:9243/","ecs.version":"1.6.0](https://2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io:9243/%22,%22ecs.version%22:%221.6.0)"}  
> Error: fail to enroll: fail to execute request to fleet-server: x509: certificate is valid for 1XX.XXX.XXX.244, 1XX.XXX.XXX.245, \*[1XX.XXX.XXX.244.ip.es.io](http://1XX.XXX.XXX.244.ip.es.io), not [2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io](http://2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io)
> 
> Best Regards,  
> Shrikant

Hi,

You could update the SSL/TLS certificate to include the domain [2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io](http://2077bdcea73cc171b2e.fleet.1XX.XXX.XXX.244.ip.es.io). This would likely involve generating a new certificate and updating it in your ECE and Fleet settings.

or you could change the Fleet Server URL that the Elastic Agent is trying to connect to, so that it matches one of the domains or IP addresses the certificate is valid for.

Regards

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 13, 2024, 11:27am UTC](https://discuss.elastic.co/t/error-fail-to-enroll-fail-to-execute-request-to-fleet-server-x509/361392/3 "2024-06-13T11:27:36Z")

</div>

Hi @yago82 ,

thankyou for your response.  
can you please let me know how to change the url since  
we took the integration server at the time of deployment of elastic instance inside ECE
