# Elastic-Agent - failed to dispatch actions, error: could not parse the configuration from the policy: duplicate key accessing 'ssl.certificate\_authorities'

**URL:** <https://discuss.elastic.co/t/elastic-agent-failed-to-dispatch-actions-error-could-not-parse-the-configuration-from-the-policy-duplicate-key-accessing-ssl-certificate-authorities/314333>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [September 13, 2022, 7:18pm UTC](https://discuss.elastic.co/t/elastic-agent-failed-to-dispatch-actions-error-could-not-parse-the-configuration-from-the-policy-duplicate-key-accessing-ssl-certificate-authorities/314333 "2022-09-13T19:18:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![el-jefe3](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@el-jefe3](https://discuss.elastic.co/u/el-jefe3)\
**Post date:** [September 13, 2022, 7:18pm UTC](https://discuss.elastic.co/t/elastic-agent-failed-to-dispatch-actions-error-could-not-parse-the-configuration-from-the-policy-duplicate-key-accessing-ssl-certificate-authorities/314333/1 "2022-09-13T19:18:06Z")

</div>

Hi, I have recently added Fleet Server to my stack, but I am having problems with my SSL Certificates (\*Wild Card Certs). I have been able to successfully to integrate new certificates for both Transport and HTTP, but I keep getting this error on my fleet server elastic-agents.

\*\*[elastic\_agent][error] failed to dispatch actions, error: could not parse the configuration from the policy: duplicate key accessing 'ssl.certificate\_authorities'

\*\* **[elastic\_agent][error] Elastic Agent status changed to "error": "component gateway-a757d5f3: failed to dispatch actions, error: could not parse the configuration from the policy: duplicate key accessing 'ssl.certificate\_authorities'"**

For my certificate authority I have concatenated both my intermediate and root certificates to make up my Certificate Authority. Is this why I am receiving this error, has anyone experienced similar issue?

command used  
cat intermediate root \> elasticsearch.ca.crt

Update  
When converting certificates to PKCS12 format I had placed the concatenated certificate authority displayed above. Which is why I thought I was getting that duplicate key error. Since replacing that concatenated file with just the intermediate without the root certificate I am now getting this error.

[elastic\_agent][error] Elastic Agent status changed to "error": "app fleet-server--8.4.1-2a05c43d: Error - x509: certificate signed by unknown authority"

I think this is what led me to concatenate the file in the first place.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 11, 2022, 7:18pm UTC](https://discuss.elastic.co/t/elastic-agent-failed-to-dispatch-actions-error-could-not-parse-the-configuration-from-the-policy-duplicate-key-accessing-ssl-certificate-authorities/314333/2 "2022-10-11T19:18:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
